1. Right-click the project and select Preferences ->; Search project called Facets – & gt; Go to Java and select compile environment 1.7, enter Runtime, select a Tomcat, and click New:
Select Tomcat7, click Apply, and click OK:
Click Configuration, select the Tomcat you just selected, when done, click Apply, and click OK:
Then select the project and right-click ->; Select Build Path ->; Select Configure build path:
Select libraries – & gt; Select the JRE System Library ->; Click Edit to change the compile environment:
Select the default build environment, mine is JDK 1.8, and click Finish:
Select Tomcat7, click Apply, and click OK:
Click Configuration, select the Tomcat you just selected, when done, click Apply, and click OK:
Then select the project and right-click ->; Select Build Path ->; Select Configure build path:
Select libraries – & gt; Select the JRE System Library ->; Click Edit to change the compile environment:
Select the default build environment, mine is JDK 1.8, and click Finish:
Read More:
- Solution to garbled code problem after importing project in eclipse
- How to Solve Unity Package Android Project Error
- How to solve the cross domain problem of Axios in Vue project
- This (code, message, data: null) still exists after importing spring cloud project into Lombok; the data in the project is unrecognized
- How to solve the problem that the project module turns grey in Maven
- How to solve the problem of artifact contains illegal characters when creating springboot project with idea
- [actual record of Android stepping on the pit] Android studio reports an error invalid gradle JDK configuration found after importing the project
- Error in STS importing POM file of Maven project
- The spring boot project was first created, pom.xml The error is Maven configuration problem. How to solve it?
- Solve the problem of red wavy line in pychar when importing module written by oneself
- When using idea to start a project, an error is reported: Error:java : Compilation failed: internal java compiler error
- Solve the problems of (deployment descriptor: project name) and (jax-ws web services) under the new eclipse project
- An error was reported when idea compiles Java: no symbol was found_ How to solve this problem
- Solve the problem of showing unregistered (unknown custom element) when importing components into Ant Design Pro
- How to turn your project into a jar package in idea
- The web project removal server reports an error, and the web project in eclipse cannot be automatically deployed to Tomcat
- Java project cannot import entity class package and service package, controller layer reports error, fix project setup is OK
- The @ Autowired annotation in springboot is invalid in ordinary classes. How to solve and use the null pointer exception java.lang.nullpointerexception
- How to generate UML Diagrams from Java code in Eclipse
- To solve problems in cmake VTK: error configuration process, project files may be invalid