1. 2. 解决方法: File>Settings>Build, Execution, Deployment>Build Tools>Maven>Runner,勾选中下图所示,问题解决! 3.项目能加载了 参考: idea报错:java: 程序包org.springframework.web.bind.annotation不存在_not an annotation type: org$springframework$web$bi-CSDN博客