Solution: Error: java: Invalid source release: 12 --Rookie Xiaohui

Solution: Error: java: invalid source release: 12

1. The spring cloud project was launched. Encounter problems:

enter description here

Second, there are two solutions.

First position:

  1. Project Structure
    enter description here
  2. Modules select your project (and parent project, if any) -> select 8 (your jdk version) as shown in the figure:enter description here

Second position

1. Setting:
enter description here
2. Find java compiler->Target bytecode version and change it to 8 (your jdk version, also pay attention to the parent project): enter description here
3. Restartenter description here

Guess you like

Origin blog.csdn.net/qq_39231769/article/details/106518747