简体   繁体   English

netbeans中的企业应用程序项目中没有web.xml

[英]no web.xml in enterprise application project in netbeans

I'm using netbeans 7.2.1 with glassfish server 3.1. 我正在使用带有glassfish服务器3.1的netbeans 7.2.1。

I created enterprise application project in netbeans and added JSF framework to the war part of the project. 我在netbeans中创建了企业应用程序项目,并将JSF框架添加到该项目的战争部分。 Netbeans didn't create any web.xml and no glassfish-web.xml file, as it creates for web project. Netbeans不会为Web项目创建任何web.xml,也不会创建glassfish-web.xml文件。 Is there special reason for it? 是否有特殊原因? As I understand it, the war part of the enterprise application project has same structure as web project... If web.xml is not needed where the needed configuration should be done, as for example, welcome file ? 据我了解,企业应用程序项目的战争部分与Web项目具有相同的结构...如果不需要web.xml,则应在所需的位置进行所需的配置,例如,欢迎文件?

If I create web.xml manually, should it syntax be the same as for web application web.xml file? 如果我手动创建web.xml,它的语法应该与Web应用程序web.xml文件的语法相同吗?

Thanks 谢谢

From servlet 3.0 there is no web.xml 从Servlet 3.0开始,没有web.xml

There are annotations now to map. 现在有要映射的注释。

Annotations Vs. 注释与 Deployment Descriptor 部署描述符

If I create web.xml manually, should it syntax be the same as for web application web.xml file? 如果我手动创建web.xml,它的语法应该与Web应用程序web.xml文件的语法相同吗?

Yes. 是。

Servlet 3.0 spec Servlet 3.0规范

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM