• springboot启动报UnsatisfiedDependencyE
  • 其它

从ssm项目复制到springboot中,编译通过,但是启动的时候报错:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'coachController': Unsatisfied dependency expressed through field 'coachServ'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'coachImpl': Unsatisfied dependency expressed through field 'coachDao'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'coachDao' defined in file [F:\shangwu\target\classes\com\sang\dao\coach\CoachDao.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: org/w3c/dom/ElementTraversal

  • Willson1991    2019-11-26 10:36:54
  • 阅读 2647    收藏 0    回答 1
  • 邀请
  • 收藏
  • 分享
发送
登录 后发表评论
  • 51testing软件测试圈微信