Based packaged maven + ssm summary of the CRUD and using Maven

 

We can also take advantage of our project maven packaged into a format war, it runs the real server.

(1) Right-click on the project, select run as - maven install. There is a problem: No Compiler Environment IS Provided in the this, refer to:

  https://blog.csdn.net/lslk9898/article/details/73836745

(2) After the success can be seen in the console:

In the project target folder:

 

Red box marked what we needed for the war package.

(3) We will copy it, and placed under the webapps directory of tomcat:

(4) F: \ apache-tomcat-7.0.85 \ bin into the terminal:

It will be generated in the webapps:

At the same time extra pop up a terminal server startup tomcat:

We have closed the eclipse. In the browser, enter: localhost: 8080 / curd_ssm /,

We can still run our program. 

Guess you like

Origin www.cnblogs.com/xiximayou/p/12240829.html