java.lang.NoClassDefFoundError: com/system/domain/TestDo (wrong name: comsystem/domain/TestDO)
这一句。xml文件中的namespace写对了嘛?
springboot框架下整了一个数据库的增加修改删除的小东西,然后报了这个错,百度好久也没解决,求大佬看看
报错如下:
错如下:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
17:03:19 [main] ERROR o.s.boot.SpringApplication - Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'logAspect': Unsatisfied dependency expressed through field 'logService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'logServiceImpl': Unsatisfied dependency expressed through field 'logMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'logDao' defined in file [C:\common\dao\LogDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: com/system/domain/TestDo (wrong name: comsystem/domain/TestDO)
摆脱大佬看看谢谢
- 点赞
- 写回答
- 关注问题
- 收藏
- 复制链接分享
- 邀请回答
2条回答
为你推荐
- 求助,Java-SpringBoot应用查询id返回的值为null,但是在数据库查询是有结果的,应当如何解决呢?
- java
- java-ee
- maven
- spring
- mysql
- 2个回答
- 求大佬看看 ,springboot框架下整了一个数据库的增加修改删除的小东西,然后报了实例化什么的这个错
- java
- java-ee
- maven
- spring
- 1个回答
- springboot框架下整了一个数据库的增加修改删除的小东西,然后报了这个错,百度好久也没解决,求大佬看看
- java
- maven
- spring
- eclipse
- 2个回答