使用接口注入,不能直接注入实现类型

比如xxx.xxx.UserService

应该为xxx.xxx.IUserService

否则就会报but was actually of type [com.sun.proxy.$Proxy33]之类的错误

相关文章:

  • 2021-12-09
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-13
  • 2021-12-12
  • 2021-11-30
  • 2021-11-10
  • 2022-01-15
  • 2022-12-23
  • 2022-02-09
相关资源
相似解决方案