tomcat直接输入Ip和端口号就可以主动加载一个jsp页面!

来源:互联网 发布:软件性能指标有哪些 编辑:程序博客网 时间:2024/06/07 12:36

在tomcat目录中打开conf中的web.xml找到如下内容: 

    <welcome-file-list>

        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>

    </welcome-file-list>

意思是:输入Ip和端口号后,会主动运行名字为index.html或其他两种的页面!当然也可以自己创建想自动加载的页面!

0 0