Eclipse项目中的web.xml在哪里 [英] Where is web.xml in Eclipse projects

查看:722
本文介绍了Eclipse项目中的web.xml在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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 automatially create the web.xml file. If you don't mark that, the eclipse doesn't create it...

所以,你必须添加一个新的web.xml文件WEB-INF文件夹。

So, you have to add a new web.xml file in the WEB-INF folder.

这篇关于Eclipse项目中的web.xml在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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