weixin_45695267 2020-07-08 18:08 采纳率: 0%
浏览 89

想用java打开一个web工程,有大佬可以看看这个怎么回事吗

图片说明

  • 写回答

2条回答 默认 最新

  • DavidLee9 2020-07-08 18:37
    关注

    项目默认会访问web.xml下的欢迎界面,依次寻找,如果都没有找到会报404

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

    1.去tomcat webpath下看看有没有项目
    2.右击项目properties查看web project setting中context root是不是/homework

    评论

报告相同问题?