While the spring boot project was running project in IntelliJ idea I got the following error:
language level is invalid or missing in pom.xml. current project jdk is 15
and this also;
java error invalid source release 15
This issue will occur when you have two or more java versions installed in machine.
I did the following to solve the issue:
Go to File->Project Setting and check “Project SDK” and “Project Language Level”
Then go to Modules and select the same version as the JAVA version.
This setting will solve your issue.