Exception in thread "main" org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.aaa.service.UserService' available
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:343)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:335)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1101)
at com.aaa.App.main(App.java:17)

缺少@service注解

 

相关文章:

  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
猜你喜欢
  • 2022-12-23
  • 2021-09-21
  • 2021-11-14
  • 2022-12-23
  • 2022-01-23
  • 2022-02-15
  • 2021-04-11
相关资源
相似解决方案