After change env JAVA_HOME from Java11 to Java8, IntelliJ started to highlight almost every line of code in my project as warning. In pom.xml I have java 1.8 In module settings I have also java 8
When you encounter strange issues with the IDE there are a couple of things you can do to resolve the issue without removing and reimporting the project.
Build -> Rebuild Project
File -> Invalidate Caches
and click Invalidate and Restart
. It will force IntelliJ to re-index everything.Those methods usually work.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.