Tomcat运行报404的解决方法
当配置Tomcat根据操作的步骤走时,idea会自动在连接上面加上http://localhost:8090/study_MVC_Servlet_war_exploded/,而Web.xml中的配置访问是![在这里插入图片描述](https://img-blog.csdnimg.cn/d41ea4156fc049c2b058c6c8e415a4b0.png)
当调用/hello时,不会自动加上study_MVC_Servlet_war_exploded
解决办法:
1、TOmcat删除study_MVC_Servlet_war_exploded
2、在web.xml配置时,在每个跳转前加上study_MVC_Servlet_war_exploded