shankuijiang
前往浩瀚的大海
采纳率100%
2019-08-22 17:21

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条回答

  • qq_39234705 流泪熊猫头 2年前

    java.lang.NoClassDefFoundError: com/system/domain/TestDo (wrong name: comsystem/domain/TestDO)
    这一句。xml文件中的namespace写对了嘛?

    点赞 1 评论 复制链接分享
  • weixin_39843819 weixin_39843819 2年前

    xml文件中的namespace写对了嘛?

    点赞 1 评论 复制链接分享