java 网站和WebApplication之间的区别?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2389925/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Difference between Website and WebApplication?
提问by Yatendra Goel
I have searched a lot about the difference between Websiteand WebApplicationbut didn't get a clear cut answer.
我已经搜索了很多关于 和 之间的区别Website,WebApplication但没有得到明确的答案。
Even I am more confused after reading about that.
甚至我在阅读后更加困惑。
回答by aefxx
From Wikipedia:
来自维基百科:
WebApplication
In software engineering, a web application is an application that is accessed via a web browser over a network such as the Internet or an intranet. The term may also mean a computer software application that is hosted in a browser-controlled environment (e.g. a Java applet)[citation needed] or coded in a browser-supported language (such as JavaScript, combined with a browser-rendered markup language like HTML) and reliant on a common web browser to render the application executable.
Website
A website (also spelled Web site[1]) is a collection of related web pages, images, videos or other digital assets that are addressed relative to a common Uniform Resource Locator (URL), often consisting of only the domain name, or the IP address, and the root path ('/') in an Internet Protocol-based network. A web site is hosted on at least one web server, accessible via a network such as the Internet or a private local area network.
Web应用程序
在软件工程中,Web 应用程序是通过 Web 浏览器在 Internet 或 Intranet 等网络上访问的应用程序。该术语还可以指在浏览器控制的环境(例如 Java 小程序)中托管的计算机软件应用程序 [需要引用] 或以浏览器支持的语言(例如 JavaScript,结合浏览器呈现的标记语言,如HTML) 并依赖于通用 Web 浏览器来呈现应用程序可执行文件。
网站
网站(也拼写为网站 [1])是相关网页、图像、视频或其他数字资产的集合,这些资产相对于公共统一资源定位符 (URL) 进行寻址,通常仅包含域名,或IP 地址和基于 Internet 协议的网络中的根路径 ('/')。网站托管在至少一个网络服务器上,可通过网络(例如 Internet 或专用局域网)访问。
See here: Website// Web Application
回答by Rockcoder
Websites is more about content, web application more about functionality.
网站更多的是内容,网络应用程序更多的是功能。
回答by Roland Bouman
Website is a location where you can find "content". A Webapplication is a service that offers ways for users to interact with the server to get particular content.
网站是您可以找到“内容”的位置。Web 应用程序是一种服务,它为用户提供与服务器交互以获取特定内容的方法。
Webapplications reside at some website. One website can host multiple webapplications, along with other (static) content.
Web 应用程序驻留在某个网站上。一个网站可以托管多个网络应用程序以及其他(静态)内容。
回答by Oded
A web application will have some dynamic logic behind it (i.e. do something). Normally it would have a database and some server side programming language to power it.
Web 应用程序背后会有一些动态逻辑(即做某事)。通常它会有一个数据库和一些服务器端编程语言来支持它。
A website can be completely static - for example just a bunch html pages linked together.
一个网站可以是完全静态的——例如只是一堆链接在一起的 html 页面。
A website could also be a collection of web applications and static pages.
网站也可以是 Web 应用程序和静态页面的集合。
Update:
更新:
If you are talking about the difference between visual studio web application projects and web site projects, read this articleand this one.
如果您正在谈论 Visual Studio Web 应用程序项目和网站项目之间的区别,请阅读这篇文章和这篇文章。
Web application projects have a project file and can be compiled to a single binary (plus .aspx pages and static content).
Web 应用程序项目有一个项目文件,可以编译为单个二进制文件(加上 .aspx 页面和静态内容)。
回答by naivists
If you are referring to Microsoft SharePoint, then the difference is that a Web application contains a collection of Sites, each site being a collection of webs.
如果您指的是 Microsoft SharePoint,则不同之处在于 Web 应用程序包含站点集合,每个站点都是 Web 的集合。
Hence, a web application is, for instance, http://yourserver. Now you can define sites such as http://yourserver/(root), then additional sites at http://yourserver/sites/<something>like http://yourserver/sites/team1, http://yourserver/sites/documentsite2etc.
因此,例如,Web 应用程序是http://yourserver. 现在,您可以定义网站,如http://yourserver/(根),然后在其他网站http://yourserver/sites/<something>一样http://yourserver/sites/team1,http://yourserver/sites/documentsite2等等。
A web is something similar to a site, but it is located "under" a particular site. So, a web can be located at http://yourserver/sites/team1/meetingwebfor instance.
网络类似于站点,但它位于特定站点的“下方”。因此,一个网络可以位于http://yourserver/sites/team1/meetingweb例如。
回答by zafar ul islam
The best way to think about the difference between a web application and a website is to ask yourself what is it being used for; or what is it's purpose. If the sole purpose is to market or advertise a service or product, then we call those websites. If the purpose is utility in nature, designed to solve a problem or make your job/life easier, then it's probably an application. web application cab be a web site but web site cannot be a web application
考虑 Web 应用程序和网站之间区别的最好方法是问问自己它的用途是什么;或者它的目的是什么。如果唯一目的是营销或宣传服务或产品,则我们称这些网站为。如果目的本质上是实用程序,旨在解决问题或使您的工作/生活更轻松,那么它可能是一个应用程序。网络应用程序可以是一个网站,但网站不能是一个网络应用程序
回答by Syed Fahad Ali
Both function and perform similarly, but still differ in following ways.
两者的功能和表现相似,但在以下方面仍有所不同。
Web application:
Web应用程序:
a) We can't include c# and vb page in single web application. b) We can set up dependencies between multiple projects. c) Can not edit individual files after deployment without recompiling. d) Right choice for enterprise environments where multiple developers work unitedly for creating,testing and deployment.
a) 我们不能在单个 Web 应用程序中包含 c# 和 vb 页面。b) 我们可以在多个项目之间建立依赖关系。c) 部署后不重新编译不能编辑单个文件。d) 多个开发人员联合工作以进行创建、测试和部署的企业环境的正确选择。
Web site:
网站:
a) Can mix vb and c# page in single website. b) Can not establish dependencies. c) Edit individual files after deployment. d) Right choice when one developer will responsible for creating and managing entire website.
a) 可以在单个网站中混合使用 vb 和 c# 页面。b) 无法建立依赖关系。c) 部署后编辑单个文件。d) 由一名开发人员负责创建和管理整个网站的正确选择。

