右击项目选择 Add Framework Support 还有一种方法:自行试用 在pom.xml 文件上右键 Add as Maven Project; 完成需要对maven进行clean和install 参考 https://jingyan.baidu.com/article/870c6fc3c59fb1f13ee4be55.html