Idea prompts Information: javac 1.8.0_251 was used to compile java sources error
This problem occurred after re-building a maven project. When writing a maven project before, I used the Lambda syntax after jdk8 and there was no error, but don’t panic.
Solution:
The focus is:
File -> Project Structure -> Project Settings
File -> Project Structure -> Module Settings -> Tab: Sources: Language Level
File -> Project Structure -> Module Settings -> Tab: Dependencies: Module SDK
File -> Settings -> Compiler -> Java Compiler -> Target bytecode version
The four versions must be the same