当然
webapps/root/
是tomcat的默认根发布目录,
它的主页就是
webapps/root/index.html这个页面,现在你的页面替换了它,当然就是你的咯

解决方案 »

  1.   

    你看下tomcat的conf/web.xml中关于welcome-file-list的定义就知道了
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
      

  2.   

    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    可以改优先级
      

  3.   

    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    在这里改就行了!!可以删掉你不要的!
      

  4.   

    conf/web.xml和我自己建的web应用下的web.xml有什么区别
      

  5.   

    conf/web.xml和我自己建的web应用下的web.xml有什么区别
      

  6.   

    简单的说,你的web.xml中的配置会覆盖掉conf/web.xml的配置,如果你的web.xml中缺少某些配置则使用conf/web.xml中的配置
      

  7.   

    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    这里有个优先级的问题