How to apply Java Web 3 1 + project version reduction and replacement of JDK and Tomcat
•
Java
First: configure the running server of Eclipse: we configure Tomcat 7 version + jdk1 Version 7; Then add the previous web project to the server
, but the prompt addition failed: because our previous project NetWatcher is based on tomcat8 + jdk1 8 dynamic web project selection for development
We chose version 3.1; So it can't run in jdk1 7 + tomcat7 up
At this time, we need to modify the project configuration: reduce the Java version to 1.7 in the eclipse interface; The version of dynamic WebM is reduced to 3.0; However, only the Java version can be modified in the interface, not the dynamic version. We need to modify it in the project source code file Configuration file under settings folder
In the source path, modify The following configuration files in the settings folder: modify the following files
Open modify: modify to 3.0; The web project version can only be modified here, but the eclipse configuration interface cannot be modified
In addition: Web The XML file does not need to be modified
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码