netbeans中的企业应用程序项目中没有web.xml [英] no web.xml in enterprise application project in netbeans

查看:408
本文介绍了netbeans中的企业应用程序项目中没有web.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有glassfish服务器3.1的netbeans 7.2.1。

I'm using netbeans 7.2.1 with glassfish server 3.1.

我在netbeans中创建了企业应用程序项目,并将JSF框架添加到项目的war部分。 Netbeans没有为web项目创建任何web.xml,也没有创建glassfish-web.xml文件。它有特殊原因吗?据我了解,企业应用程序项目的war部分与web项目具有相同的结构...
如果不需要web.xml,那么应该进行所需的配置,例如,欢迎文件?

I created enterprise application project in netbeans and added JSF framework to the war part of the project. Netbeans didn't create any web.xml and no glassfish-web.xml file, as it creates for web project. 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.xml,它的语法应该与web应用程序web.xml文件的语法相同吗?

If I create web.xml manually, should it syntax be the same as for web application web.xml file?

谢谢

推荐答案

从servlet 3.0开始,没有 web.xml

From servlet 3.0 there is no web.xml

现在有注释可以映射。

注释与部署描述符


如果我手动创建web.xml,它的语法应该与Web应用程序web.xml文件的语法相同?

If I create web.xml manually, should it syntax be the same as for web application web.xml file?

是。

Servlet 3.0规范

这篇关于netbeans中的企业应用程序项目中没有web.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆