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