1.将web.xml配置改为tomcat一致

2.在main文件夹下添加java源码目录 以及resources文件夹

按照图中箭头顺序选择tomcat local

警告需要创建一个项目来解决