IDEA 提示Cannot resolve symbol

将Springboot项目,构建为多个模块的时候,idea的有些类中报错Cannot resolve symbol 
解决:

1、File->Invalidate Caches/Restart 清除缓存并重启 idea
2、检查pom文件中的依赖关系是否正确
3、maven -> Reimport

 

 

参考:

https://blog.csdn.net/ahaha413525642/article/details/77825510

https://blog.csdn.net/lesaqiu/article/details/54846960

 

posted @ 2018-04-13 10:33  裸奔的太阳  阅读(36908)  评论(2编辑  收藏  举报