1 server-related
New server
In Project Explorer, right-->new->other, get the following view:
Select Server and click Next to get the following view:
Select a server type, such as TOMCAT6, where you can name the server and click Next
Select the Tomcat installation path and JRE and click Next, click Finish to create the server success.
See the following views in Project Explorer:
With the relevant configuration files for Tomcat
See in the servers view such as:
2 Adding the system Java JRE
Window->java->installed JREs
Add and select a default JRE, optionally joining multiple JRE, such as jdk1.5,jdk1.6,jdk,1.7
3 Project Setup and deployment
New Project
Temporary brief
Project local path and path view:
Project Right-click->resource
Deploy the project to Tomcat
In the Servers view, select a server right, select and click Add and Remove,
Add the left item to the right and click Done, such as:
Click Run or debug to run Tomcat
Other features
Recompile project: Right-click and clean
Redeploy Project: Right-click and publish
To modify the project deployment path:
Double-click Server to modify it in the following view:
To modify the server startup time-out
Double-click Server
Modify Project Auto-deployment
Double-click Server, in the following view, will automatically reloading check out
In the project development process, it is best not to set up auto reloading, otherwise you will automatically restart when you change the code
Modify Project Auto-compile build
Eclipse Menu->project->build automatically
To recompile the project, you can also click Project->clean
4 Project compilation environment settings
Right-click Project-Properties->java compiler
This specifies that the JDK version of Java is compiled
Also set the Java compilation version in the Properties->project facets
5 Project Java Build path
3.1 Introduction
Location: Right-click Project, Properties->java build Path
Source:java Source
Libraries:
The project relies on the relevant jar package, which refers to the build-dependent jar package, which builds the compilation environment, not the deployment environment
Related actions:
1) Add Jars:
Adding a jar package from the project directory to the project compilation environment, when you introduce a custom jar package, it is recommended that this method
2) Add external jars
Add the jar package externally, select and load the jar package from the local disk
3) Add Library
Loading system jar packages, such as JDK
3.2 Join the web App Library
ADD Library->web App Library
Introduce the following jar package into the project compilation environment in the project Web-infi/lib
3.3 Joining the server runtime jar
ADD library->server runtime-> Select Server
To enter the server's Lib jar package into the compilation environment
How do I designate an empty project as a Web project?
Property->project facets-> Tick Dynamic Web module
How do I modify the path of a Web project?
1) Properties->web Project Settings
2) Server->modules->path:
6 Project Deployment Settings
Property->deployment Assembly
7 Font settings
Window->general->appearance->colors and Fonts->basic->text Font
8 Project file Encoding settings
1) Window->general->workspace->text file encoding
2) Right-click Project, properties->resource->text file encoding
9 Notes Codestyle
Window->java->code style->code Templates
Notes for the Types:java class
Comment on the Methods:java method
The reference template is as follows:
/**
* @author Tangyampo
* @date ${date}
* ${tags}
*/
10 canceling eclipse validation of files such as XML
Window->validation
11 Project Import
Import SVN Project
Importing MAVEN Projects
Import Existing Project
Eclipse Usage Summary