在spring boot项目中,已经导入了所有需要的包,class文件一直报Cannot resolve symbol 。 解决办法: File->Invalidate Caches/Restart 清除缓存重启