- Prepare Eclipse Tools
- Unzip to a path that has no Chinese and no spaces
- To add Maven to eclipse, first find the location of the MAVEN plug-in package and add it to the Dropins directory in the Eclispe decompression path.
- Java Environment configuration:
- Compiled version:
- Select the Java Runtime Environment:
- Server Configuration
To configure the Web Server, the system uses TOMCAT7 as the Web container and needs to configure the Tomcat Server with the following configuration steps:
- Add Tomcat Runtime Environment
Click Finish
- Add Tomcat Server
- Show Tomcat Server
- Configure Tomcat
Timeouts: Delay time setting increased, set to 100 or more
Server Location: Select intermediate option, use Tomcat's installation directory, server path is Tomcat's installation directory, Deploy Path selects the default project deployment directory under the Tomcat installation directory, which is webapps under the Tomcat installation directory.
If there is a memory overflow when Tomcat starts the project, you can increase the virtual machine memory by using the method below.
Add the Java Memory Settings command to the top red box:
-xms128m-xmx512m-xx:permsize=128m-xx:maxpermsize=512m
- Eclipse Default Character Set
Workspace Default character encodingChange the default character set for a workspace to Utf-8
- Change the JSP file character encoding:
- Web Engineering Testing
Create a Web project to test whether Tomcat can be used.
- Create a Dynamic Web project
- Create a new JSP:
- Deploy run in Tomcat
- Re-deploy:
Eclipse Memory SettingsTo prevent eclipse from running memory overflow during startup, modify the Eclipse.ini file to add the following:
-xms128m
-xmx768m
-xx:permsize=64m
-xx:maxpermsize=128m
Eclipse Font ModificationEclipse Add code hintsIn the red box above, enter:. abcdefghijklmnopqrstuvwxyz
Eclipse Development Environment Building