How to change the ROOT application?

后端 未结 13 1550
终归单人心
终归单人心 2020-11-22 16:16

I\'m trying to change the default application of a Tomcat 6 webserver to a different application than \"ROOT\" (inside webapps folder). What is the best way to do this?

13条回答
  •  猫巷女王i
    2020-11-22 16:44

    Adding a tag in the tag in server.xml for Tomcat 6 will resolve the problem.

    If you use path="" empty you can use a URL like http://localhost/first.do.

    In the context tag set attributes docBase="E:\struts-ITRCbook\myStrutsbook" and reloadable="true", then end the context tag.

    It should look something like this:

    
        
        
    
    

提交回复
热议问题