如何将 war 文件部署到任何应用程序服务器中?
我知道当我的Web应用程序创建一个war文件时,我必须部署它,也就是说,如果我使用JBoss,我必须将其复制到部署文件夹,如果使用WAS,我必须安装它。 但我想知道,当我从服务器开始部署我的应用程序的位置启动服务器时。这就是开始加载我的类、属性、数据库连接等的入口点。
谢谢。
I know that when a war file is created of my web application, i have to deploy it, that is if i am using JBoss i have to copy it to deploy folder and if using WAS i have to install it.
But i want to know, When i start the server from where the server starts deploying my application. that is which is the entry point to start loading my classes, properties ,DB connections etc..
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它是
web.xml
文件,称为部署描述符。您可以在此处配置 servlet 和过滤器。特别是,您将 url 映射到 servlet,这是应用程序的入口点。这些类在启动时加载,然后再处理任何请求。以下链接提供了有关部署描述符的更多信息。
It's the
web.xml
file, which is known as the deployment descriptor. This is where you configure your servlets and filters. In particular, you map urls to servlets, and this is the entry point into your application. The classes are loaded on startup, before any requests are handled.Here is a link to more information about deployment descriptors.