TomCat deployment integrated with MyEclipse

One: server TomCat configuration

1. Software installation:

www.tomcat.apache.org --download   installation path does not allow Chinese

2. Basic structure:

 

3. Start and close TomCat (in the bin directory)

 

Start the server:

1). Success:

 

Verification: The default page can be accessed after successful startup http://localhost:8080 //default port 8080

 

2). Failure:

 

 

 

Reason: tomcat needs to use the port, the default is 8080, which is already occupied by other applications at this time, and the port number needs to be modified.

a. Access tomcat/conf/server.xml

b. Modify to another port number

 

 

4. TomCat boot crashes

JAVA_HOME configuration problem (solution: add pause at the end of startup.bat, check the error message)

JAVA_HOME is configured as: JDK installation directory

 

5. Develop the model

 

 

Two: MyEclipse and TomCat integration

1. Integration:

I. MyEclipse ---> window ---> Preferences ---> 搜索tomcat

II. Configure the tomcat server

 

III. Finish to complete the deployment of the project (copy the project to webapps by MyEclipse)

 

IV. tomcat 8.5 start

2. Development steps:

I. Setting up the environment: import web.xml, import Jar into the lib directory

II. Override the service method in Servlet

III. Configure web.xml

IV. Deployment (put the entire project into tomcat/webapps)

 

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325433027&siteId=291194637