1. 在project structure里面设置resources和source文件夹。 2. reimport一下maven文件 3. 重新clean package一下 再重启tomcat,应该就可以打包进去了。