共三个地方:
1.File=>Settings=>Build,Execution,Deployment=>Compiler=>java Compiler=>Target bytecode version
2.File=>Project Structure=>Project SDK,Project language level
3.Run/Debug Configurations=>Tomcat Server=>Tomcat 9.0.68=>JRE