Spring+Mybartis 的时候做测试报错,求助
spring吧
全部回复
仅看楼主
level 3
Spring+Mybartis 的时候做测试报错,求助
2018年06月28日 01点06分 1
level 3
2018年06月28日 01点06分 2
level 3
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.itcast.dao.UserDAO com.itcast.service.impl.UserServiceImpl.userDAO; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.mybatis.spring.SqlSessionFactoryBean] for bean with name 'sqlSessionFactory' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/beans/factory/FactoryBean
2018年06月28日 01点06分 3
level 3
希望有前辈可以指点一下
2018年06月28日 01点06分 4
level 4
检查 注解 扫描注解 包 这几项
2018年06月29日 13点06分 5
level 1
测试类上下文加了吗
2018年07月05日 01点07分 6
1