SSM登录案例之404资源无法访问的解决

上传者: 44140450 | 上传时间: 2021-05-18 09:01:57 | 文件大小: 12.31MB | 文件类型: ZIP
博客:https://blog.csdn.net/qq_44140450/article/details/116952582 这里我为了熟悉SSM框架,在学习完SpringMVC后开始上手一个比较好练手的login项目,于是随便写了点代码然后运行tomcat后发现了这个资源404错误,我猜测肯定是路径的问题,后来在网上找了很多解决方法,发现都不太适应我的项目(有大佬已经总结了好多404相关的原因,比较具体看这里→:springmvc不进入Controller导致404),然后又去了解了一下tomcat,思考了几天,准备从项目结构下手,后来问题得到了解决

文件下载

资源详情

[{"title":"( 64 个子文件 12.31MB ) SSM登录案例之404资源无法访问的解决","children":[{"title":"loginExp_07.iml <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"resources","children":[{"title":"SpringDao.xml <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"Mybatis.xml <span style='color:#111;'> 424B </span>","children":null,"spread":false},{"title":"UserServlet.xml <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"UserService.xml <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"applicationContext.xml <span style='color:#111;'> 657B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"demo","children":[{"title":"xjh","children":[{"title":"dao","children":[{"title":"UserDao.java <span style='color:#111;'> 246B </span>","children":null,"spread":false},{"title":"mapper","children":[{"title":"UserMapper.xml <span style='color:#111;'> 661B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"po","children":[{"title":"User.java <span style='color:#111;'> 575B </span>","children":null,"spread":false}],"spread":true},{"title":"controller","children":[{"title":"Submit.java <span style='color:#111;'> 840B </span>","children":null,"spread":false}],"spread":true},{"title":"service","children":[{"title":"serviceImpl","children":[{"title":"UserServiceImpl.java <span style='color:#111;'> 802B </span>","children":null,"spread":false}],"spread":true},{"title":"UserService.java <span style='color:#111;'> 237B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"misc.xml <span style='color:#111;'> 278B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 269B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 11.59KB </span>","children":null,"spread":false},{"title":"libraries","children":[{"title":"libs.xml <span style='color:#111;'> 293B </span>","children":null,"spread":false}],"spread":true},{"title":"artifacts","children":[{"title":"loginExp_07_war_exploded.xml <span style='color:#111;'> 724B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"out","children":[{"title":"artifacts","children":null,"spread":false}],"spread":true},{"title":"web","children":[{"title":"img","children":[{"title":"bj.jpg <span style='color:#111;'> 1.90MB </span>","children":null,"spread":false}],"spread":true},{"title":"WEB-INF","children":[{"title":"web.xml <span style='color:#111;'> 833B </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"SpringDao.xml <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"Mybatis.xml <span style='color:#111;'> 424B </span>","children":null,"spread":false},{"title":"com","children":[{"title":"resources","children":[{"title":"SpringDao.xml <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"Mybatis.xml <span style='color:#111;'> 424B </span>","children":null,"spread":false},{"title":"UserServlet.xml <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"UserService.xml <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"applicationContext.xml <span style='color:#111;'> 657B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"demo","children":[{"title":"xjh","children":[{"title":"dao","children":[{"title":"mapper","children":[{"title":"UserMapper.xml <span style='color:#111;'> 661B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"UserServlet.xml <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"UserService.xml <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"demo","children":[{"title":"xjh","children":[{"title":"dao","children":[{"title":"UserDao.class <span style='color:#111;'> 341B </span>","children":null,"spread":false},{"title":"mapper","children":[{"title":"UserMapper.xml <span style='color:#111;'> 661B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"po","children":[{"title":"User.class <span style='color:#111;'> 970B </span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"Submit.class <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"UserService.class <span style='color:#111;'> 327B </span>","children":null,"spread":false},{"title":"serviceImpl","children":[{"title":"UserServiceImpl.class <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"applicationContext.xml <span style='color:#111;'> 657B </span>","children":null,"spread":false}],"spread":true},{"title":"jsp","children":[{"title":"mainPage.jsp <span style='color:#111;'> 324B </span>","children":null,"spread":false}],"spread":true},{"title":"libs","children":[{"title":"junit-4.12.jar <span style='color:#111;'> 307.55KB </span>","children":null,"spread":false},{"title":"com.springsource.org.apache.commons.logging-1.1.1.jar <span style='color:#111;'> 60.02KB </span>","children":null,"spread":false},{"title":"jackson-annotations-2.5.0.jar <span style='color:#111;'> 38.88KB </span>","children":null,"spread":false},{"title":"spring-aop-3.2.16.RELEASE.jar <span style='color:#111;'> 330.72KB </span>","children":null,"spread":false},{"title":"hamcrest-all-1.3.jar <span style='color:#111;'> 299.39KB </span>","children":null,"spread":false},{"title":"spring-webmvc-3.2.16.RELEASE.jar <span style='color:#111;'> 627.20KB </span>","children":null,"spread":false},{"title":"spring-jdbc-3.2.16.RELEASE.jar <span style='color:#111;'> 396.90KB </span>","children":null,"spread":false},{"title":"druid-1.0.15.jar <span style='color:#111;'> 1.86MB </span>","children":null,"spread":false},{"title":"com.springsource.org.apache.log4j-1.2.15.jar <span style='color:#111;'> 387.42KB </span>","children":null,"spread":false},{"title":"spring-expression-3.2.16.RELEASE.jar <span style='color:#111;'> 191.96KB </span>","children":null,"spread":false},{"title":"jackson-core-2.5.4.jar <span style='color:#111;'> 224.61KB </span>","children":null,"spread":false},{"title":"servlet-api.jar <span style='color:#111;'> 193.40KB </span>","children":null,"spread":false},{"title":"com.springsource.org.aopalliance-1.0.0.jar <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false},{"title":"mysql-connector-java-5.1.6-bin.jar <span style='color:#111;'> 686.78KB </span>","children":null,"spread":false},{"title":"spring-test-3.2.16.RELEASE.jar <span style='color:#111;'> 447.62KB </span>","children":null,"spread":false},{"title":"spring-aspects-3.2.16.RELEASE.jar <span style='color:#111;'> 50.23KB </span>","children":null,"spread":false},{"title":"spring-tx-3.2.16.RELEASE.jar <span style='color:#111;'> 236.88KB </span>","children":null,"spread":false},{"title":"mybatis-spring-1.2.3.jar <span style='color:#111;'> 49.87KB </span>","children":null,"spread":false},{"title":"spring-core-3.2.16.RELEASE.jar <span style='color:#111;'> 865.23KB </span>","children":null,"spread":false},{"title":"spring-beans-3.2.16.RELEASE.jar <span style='color:#111;'> 599.96KB </span>","children":null,"spread":false},{"title":"jstl-1.2.jar <span style='color:#111;'> 404.53KB </span>","children":null,"spread":false},{"title":"jackson-databind-2.5.4.jar <span style='color:#111;'> 1.09MB </span>","children":null,"spread":false},{"title":"spring-context-3.2.16.RELEASE.jar <span style='color:#111;'> 848.15KB </span>","children":null,"spread":false},{"title":"spring-web-3.2.16.RELEASE.jar <span style='color:#111;'> 616.76KB </span>","children":null,"spread":false},{"title":"fastjson-1.2.7.jar <span style='color:#111;'> 407.44KB </span>","children":null,"spread":false},{"title":"mybatis-3.1.1.jar <span style='color:#111;'> 636.37KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"index.jsp <span style='color:#111;'> 5.93KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明