Solution: IDEA java: Warning: source release 17 requires target release 17

Problem: The newly created IDEA project, the first run error: java: Warning: source release version 17 requires target release version 17

Problem Analysis: The warning message is that the Java JDK version is inconsistent with the java jdk version configured in the local environment

Solution: Since the project java jdk version is inconsistent with the local Java environment version, change it to the same

Click: Settings --> Build, Execution, Deployment --> Complier --> Project bytecode version: 17 under the Java Complier configuration to be the same as the JDK version used by the project.

 Then we change the java.version in pom.xml to the Java version of the local environment

 Finally, we click on Maven in the upper right corner and refresh

 ----to: Lydia

Guess you like

Origin blog.csdn.net/Jason_HD/article/details/131194074