26 January 2016

demo

  1. steps

    1. copy war file to tomcat’s webapps folder

       # your war filename
       my-first-web-app.war
      
    2. restart tomcat

    3. visit my-first-web-app

demo

  1. steps

    1. copy war file to tomcat’s webapps folder

    2. copy jar files to tomcat’s lib folder

    3. 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
      
    4. restart tomcat

    5. done



blog comments powered by Disqus