Eclipse动态Web项目中的web.xml在哪里 [英] Where is web.xml in Eclipse Dynamic Web Project
问题描述
在Eclipse中,我单击File-> New-> Dynamic Web Project
,我正在跟踪Jersey的教程,现在希望我去更改web.xml文件中的内容...但是我不能甚至找到此文件。
我在做什么错了?
In Eclipse I clicked File->New->Dynamic Web Project and I am following a tutorial for Jersey that now wants me to go and change something in web.xml file...but I can't even find this file. What is it I am doing wrong?
推荐答案
创建动态Web项目时,可以选择自动创建web.xml文件。
如果不做标记,则eclipse不会创建它。
When you create a Dynamic Web Project you have the option to automatically create the web.xml file. If you don't mark that, the eclipse doesn't create it...
因此,您必须在其中添加一个新的web.xml文件。
So, you have to add a new web.xml file in the WEB-INF folder.
要添加web.xml,请单击下一步
-> 下一步
,而不是完成
。您将在向导的最终屏幕上找到它。
To add a web.xml click on Next
-> Next
instead of Finish
. You will find it on the final screen of the wizard.
这篇关于Eclipse动态Web项目中的web.xml在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!