在Spring框架下使用自动装配,测试的时候不能自动创建Bean,结果是因为不知道什么时候将该实现类Bean标记为了exclude,真是大坑。
Spring Test 自动装配出错
在编译器中找到setting–》Compiler–》Excludes:去掉该类即ok!
援引旷世奇坑!Spring不能自动注入!

相关文章:

  • 2022-12-23
  • 2021-04-29
  • 2022-01-17
  • 2021-05-28
  • 2021-07-19
  • 2021-10-24
  • 2021-06-26
猜你喜欢
  • 2022-12-23
  • 2021-08-18
  • 2021-11-17
  • 2021-07-22
相关资源
相似解决方案