Deploy directly to the webapps directory of tomcat, run tomcat (click startup.bat under bin in the tomcat installation directory), and then run your program!
Go to Google and find out how to manually deploy web projects to tomcat. It seems that the context.xml file needs to be modified. Putting it directly into webapps will not work
The question is not clear. If there is a ready-made war package, put it directly in the webapp directory of tomcat. If not, you need to write a script for packaging first. There are several packaging methods:
If it is built by maven, directly mvn package
Write ant script
Various scripts that can call java commands and operate files, such as bat, shell, python, etc.
Deploy directly to the webapps directory of tomcat, run tomcat (click startup.bat under bin in the tomcat installation directory), and then run your program!
Go to Google and find out how to manually deploy web projects to tomcat.
It seems that the context.xml file needs to be modified. Putting it directly into webapps will not work
mvn package
Then throw the war package into the webapp directory.The question is not clear. If there is a ready-made war package, put it directly in the webapp directory of tomcat. If not, you need to write a script for packaging first. There are several packaging methods:
If it is built by maven, directly mvn package
Write ant script
Various scripts that can call java commands and operate files, such as bat, shell, python, etc.