Spring在整合Mybatis时出现下列错误
解决Error creating bean with name 'XXX': Unsatisfied dependency expressed through field'XXX'nested exc

这个错误比较好找:
先找mybatis中实体类和xml的配置,看配置信息是否正确
解决Error creating bean with name 'XXX': Unsatisfied dependency expressed through field'XXX'nested exc
我的错误是出现在paramterType没有配置正确

然后依次找mapper接口是否有对应的方法

然后serives和serviceImpl有没有对应的方法和有没有在serviceImpl标明注解@service

细心的去找,肯定是哪里马虎了

说在最后的话:编写实属不易,若喜欢或者对你有帮助记得点赞+关注或者收藏哦~

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2021-08-25
  • 2021-05-29
  • 2022-12-23
  • 2021-07-09
猜你喜欢
  • 2021-11-07
  • 2021-03-30
  • 2021-12-12
  • 2021-08-30
  • 2021-12-24
  • 2021-09-27
  • 2022-12-23
相关资源
相似解决方案