Springboot整合mybatis mapper注入时显示could not autowire的错误
Springboot整合mybatis mapper注入时显示could not autowire的解决

1.解决方法,在mapper加一个注解。如下图所示:
@Mapper
@Component(value = “StudentDao”)

Springboot整合mybatis mapper注入时显示could not autowire的解决
尽量不要使用@Repository,虽然可以去掉红线,但是是属于hibernate。如果使用就是存在俩个持久层框架,比较伤内存。切记。

  1. 解决办法
    Springboot整合mybatis mapper注入时显示could not autowire的解决

相关文章:

  • 2022-03-05
  • 2021-05-06
  • 2019-05-21
  • 2022-12-23
  • 2021-11-29
猜你喜欢
  • 2021-09-26
  • 2021-08-02
  • 2021-06-04
  • 2021-09-12
  • 2021-11-02
  • 2021-09-08
  • 2021-06-23
相关资源
相似解决方案