Solution: Error: java: invalid source release: 12
1. The spring cloud project was launched. Encounter problems:
Second, there are two solutions.
First position:
- Project Structure
- Modules select your project (and parent project, if any) -> select 8 (your jdk version) as shown in the figure:
Second position
1. Setting:
2. Find java compiler->Target bytecode version and change it to 8 (your jdk version, also pay attention to the parent project):
3. Restart