现在的访问路径是:
http://localhost:8080/myapp/index.jsp
我想发布之后改为:
http://localhost:8080/index.jsp怎么弄?

解决方案 »

  1.   

    直接把你的index.jsp拷贝到webapps/root下覆盖原来的index.jsp
      

  2.   

    <Service name="Catalina">
        <Connector acceptCount="10" connectionTimeout="60000" debug="0" maxThreads="75" minSpareThreads="5" port="8088"/>
        <Engine debug="0" defaultHost="localhost" name="Catalina">
          <Host appBase="C:\Tomcat\webapps" autoDeploy="false" debug="0" deployXML="false" name="localhost" unpackWARs="false">
            <Context debug="0" docBase="C:\Tomcat\webapps" path="" reloadable="true"/>
          </Host>
        </Engine>
      </Service>让path空着