新建的web Project没有web.xml,网上查查原来是这样的。。。。 解决方案: 建立web项目时,建到第三个下一步时,将Generate web.xml deployment descriptor这个选项选中即可。