版权声明:小胖 https://blog.csdn.net/weixin_41895706/article/details/81076980 </div>
<link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-f57960eb32.css">
<link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-f57960eb32.css">
<div class="htmledit_views" id="content_views">
<h2>在eclipse中创建Web项目中没有web.xml的解决方法:</h2>
方法一:
右键点击项目 → “Java EE Tool” → “Generate Deployment descriptor stub” 即可生成web.xml文件
方法二:
在创建项目时,点击 next→next→ 即可生成web.xml文件