Tomcat 7, tomcat
Tomcat7 deployment, there are many ways to release a project
1. incremental release: manually upload the modified files to tomcat ,*. class *. xml and so on. This kind of disadvantage is very big. You need to disconnect tomcat and remember the files you have modified. This is very complicated. I have experienced it before and it is worth mentioning.
2. the hot deployment of the tomcat console GUI is to manually upload the war package to tomcat each time, so you do not need to disconnect it. However, if you are using distributed development, there are 30 war files, do you also manually upload each time?
3. tomcat script-based hot deployment, which is simple and can be directly deployed to a remote server after maven compilation.
Modify the file in this folder.
Add these three lines to deploy the gui and scripts.
Add tomcat7 plug-in pom
Deploy to ROOT
For initial deployment, run the "tomcat7: deploy" command. If the ROOT does not exist, use this command. If the "tomcat7: redeploy" command has been deployed and ROOT exists, use this command to overwrite it.
Compile and upload
Run