404错误

404错误

15:02:48.991 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.

15:02:49.006 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.mybatis.spring.SqlSessionFactoryBean - Property 'configuration' or 'configLocation' not specified, using default MyBatis Configuration

15:02:49.069 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.VFS - Class not found: org.jboss.vfs.VFS

15:02:49.069 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.JBoss6VFS - JBoss 6 VFS API is not available in this environment.

15:02:49.069 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.VFS - Class not found: org.jboss.vfs.VirtualFile

15:02:49.069 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.VFS - VFS implementation org.apache.ibatis.io.JBoss6VFS is not valid in this environment.

15:02:49.069 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.VFS - Using VFS adapter org.apache.ibatis.io.DefaultVFS

15:02:49.084 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Find JAR URL: jar:file:/D:/BBS/bbs_web/target/bbs_web/WEB-INF/lib/bbs_dao-1.0-SNAPSHOT.jar!/com/imooc/bbs/entity/

15:02:49.084 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Inner URL: file:/D:/BBS/bbs_web/target/bbs_web/WEB-INF/lib/bbs_dao-1.0-SNAPSHOT.jar!/com/imooc/bbs/entity/

15:02:49.084 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Extracted JAR URL: file:/D:/BBS/bbs_web/target/bbs_web/WEB-INF/lib/bbs_dao-1.0-SNAPSHOT.jar

15:02:49.084 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Found JAR: file:/D:/BBS/bbs_web/target/bbs_web/WEB-INF/lib/bbs_dao-1.0-SNAPSHOT.jar

15:02:49.084 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Listing jar:file:/D:/BBS/bbs_web/target/bbs_web/WEB-INF/lib/bbs_dao-1.0-SNAPSHOT.jar!/com/imooc/bbs/entity/

15:02:49.084 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Found resource: /com/imooc/bbs/entity/Comment.class

15:02:49.084 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Found resource: /com/imooc/bbs/entity/Post.class

15:02:49.084 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.DefaultVFS - Found resource: /com/imooc/bbs/entity/User.class

15:02:49.084 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.ResolverUtil - Checking to see if class com.imooc.bbs.entity.Comment matches criteria [is assignable to Object]

15:02:49.084 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.ResolverUtil - Checking to see if class com.imooc.bbs.entity.Post matches criteria [is assignable to Object]

15:02:49.084 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.io.ResolverUtil - Checking to see if class com.imooc.bbs.entity.User matches criteria [is assignable to Object]

15:02:49.084 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.mybatis.spring.SqlSessionFactoryBean - Scanned package: 'com.imooc.bbs.entity' for aliases

15:02:49.084 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.mybatis.spring.SqlSessionFactoryBean - Property 'mapperLocations' was not specified or no matching resources found

06-May-2020 15:02:49.428 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.registerHandler Mapped URL path [/**] onto handler 'org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0'

06-May-2020 15:02:49.663 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'SpringMVC': initialization completed in 1579 ms

[2020-05-06 03:02:49,694] Artifact bbs_web:war exploded: Artifact is deployed successfully

[2020-05-06 03:02:49,694] Artifact bbs_web:war exploded: Deploy took 3,634 milliseconds

06-May-2020 15:02:56.006 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [D:\apache-tomcat-8.5.51\webapps\manager]

06-May-2020 15:02:56.052 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\apache-tomcat-8.5.51\webapps\manager] has finished in [46] ms

http://img1.sycdn.imooc.com//climg/5eb262a9099f52fc16410703.jpg

日志中的报错信息

Property 'configuration' or 'configLocation' not specified, using default MyBatis Configuration

正在回答

登陆购买课程后可参与讨论,去登陆

3回答

同学你好,404错误是路径找不到报错,问一下同学的访问路径是什么?

http://img1.sycdn.imooc.com//climg/5eb29bf109fc923e07750088.jpg

上边并不是报错,只是提示信息:表示未指定属性配置或配置位置,使用默认MyBatis配置 。

祝:学习愉快~

提问者 C_LANNAD 2020-05-06 15:20:13

15:02:49.084 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.mybatis.spring.SqlSessionFactoryBean - Property 'mapperLocations' was not specified or no matching resources found

提问者 C_LANNAD 2020-05-06 15:15:36

怎么默认使用mybatis配置了 下面配置的映射地址没用吗 生成的target文件中映射文件也在同一个dao包下了

问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星

相似问题

登录后可查看更多问答,登录/注册

请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师