Today, we set up an SSMdemo. When compiling the java code, we found that the java version was too low. The specific error is as follows:

 Information: javac 1.8.0_112 was used to compile java sources Information: Some files were changed during the build Additional compilation may be required. Information: 2019/1/4 11:59 - 2 warnings after compilation in 798ms Warning: java: source value 1.5 is obsolete and will be deleted in all future releases Warning: java: To hide warnings about obsolete options, use - Xlint: - options.

terms of settlement:
1. Open the project structure (shortcut key ctrl+alt+shift+S
First, make sure your local java version is 1.5+, 1.8 is recommended+
Carefully check whether the following places are correct.
 Solution to low version of Java compiled by IDEA

 Solution to low version of Java compiled by IDEA

 Solution to low version of Java compiled by IDEA

2. After confirming that there is no problem, open the setting (shortcut key ctrl+alt+S
Check whether the compiler is set to 1.8+
 Solution to low version of Java compiled by IDEA

3. Finally restart the project and get it done!