原因就是byType类型只能是is-a的关系
Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'com.bjpowernodeyushuxingPrimarySchool.School' available: expected single matching bean but found 2: school,mySchool2
Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'com.bjpowernodeyushuxingPrimarySchool.School' available: expected single matching bean but fou

 

相关文章:

  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2021-09-22
  • 2021-05-29
  • 2022-02-06
猜你喜欢
  • 2021-10-07
  • 2021-06-21
  • 2022-12-23
  • 2021-08-28
  • 2021-12-18
  • 2021-11-14
  • 2022-12-23
相关资源
相似解决方案