手动添加web.xml文件 手动添加web.xml 手动添加web.xml文件在file-project structure中打开项目结构设置。选中对应web项目中的facets,选择其中+:添加对应的xml文件。可以发现添加了xml文件:最好将其移动到web文件下: