1.右键项目——properties—java Build Path——JRE System Library
2.右键项目——properties——JavaCompiler——JDK Compliance
3.右键项目——Properties——Project Facets——Java
4.Windows——Preferences——Server——Runtime Environment——Tomcat9.0——Edit——JRE
5.不行就把Server删掉重配
1.右键项目——properties—java Build Path——JRE System Library
2.右键项目——properties——JavaCompiler——JDK Compliance
3.右键项目——Properties——Project Facets——Java
4.Windows——Preferences——Server——Runtime Environment——Tomcat9.0——Edit——JRE
5.不行就把Server删掉重配