1、点击“登录”之后跳转到404 使用表单上传用户登录信息时,发现跳转到404。 原因:根目录配置不对解决方法: 疑问:像之前那样,根目录设置成/webdemo_war_exploded/时,运行tomcat后网页为localhost:8080/webdemo_war_exploded;而点击“登录”后,网页自动跳转到localhost:8080/user/login并显示404,在前面加上/webdemo_war_exploded也没用。