demo
-
steps
-
copy
war
file to tomcat’swebapps
folder# your war filename my-first-web-app.war
-
restart tomcat
-
visit my-first-web-app
-
demo
-
steps
-
copy
war
file to tomcat’swebapps
folder -
copy jar files to tomcat’s
lib
folder -
edit tomcat’s
server.xml
under conf folder# in element <Host></Host> # add a Context node <Context path="/demo" docBase="demo" debug="0" privileged="true" /> # note # 1. path: after deploy you can visit http://localhost/demo # 2. docBase: war file name, tomcat will unzip it for you
-
restart tomcat
-
done
-