mvn clean compile
Reimport,Maven 按钮来一发;
Invalidate Caches /Restsrts File下面的清除缓存再来一下;
解决方案:开始->运行->cmd->切换到项目目录执行 mvn idea:module
链接地址:https://blog.csdn.net/u013243938/article/details/106630473
https://blog.csdn.net/tcctcszhanghao/article/details/106396623