2-7 验证dao

来源:2-7 验证Dao

慕勒0596610

2018-11-06

图片描述
十一月 06, 2018 9:00:32 上午 org.springframework.context.support.GenericApplicationContext refresh
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [spring/spring-dao.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ‘com.lhl.oto.dao.split.DynamicDataSourceInterceptor’. Cause: java.lang.ClassNotFoundException: Cannot find class: com.lhl.oto.dao.split.DynamicDataSourceInterceptor
十一月 06, 2018 9:00:32 上午 org.springframework.test.context.TestContextManager prepareTestInstance
严重: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@617c74e5] to prepare test instance [com.lhl.oto.dao.AreaDaoTest@1ffaf86]

报错了

写回答

1回答

翔仔

2018-11-07

同学好,建议你在没有解决问题的能力之前不要直接复制粘贴,用后面最终源码的配置,因为那时候已经有了动态数据库适配,数据库加密等配置,建议你跟着视频去学习,不然还会遇到各种各样的错误

0
5
慕勒0596610
非常感谢!
2018-11-07
共5条回复

Java双版本(SSM到SpringBoot)校园商铺全栈开发

SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需

5134 学习 · 8152 问题

查看课程

相似问题