项目默认会访问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
https://blog.csdn.net/han1101282993/article/details/85765798 看看这篇文章是否是你需要的