org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.e3mall.service.ItemService cn.e3mall.controller.ItemController.itemService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [cn.e3mall.service.ItemService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

宜立方商城项目开发遇到的问题

仔细了挺久,发现我忘记加上@Controller跟@Service,大头虾啊我

相关文章:

  • 2022-02-10
  • 2022-12-23
  • 2021-12-15
  • 2021-06-28
  • 2022-12-23
  • 2021-12-29
  • 2021-12-15
猜你喜欢
  • 2022-12-23
  • 2021-08-16
  • 2021-10-10
  • 2021-07-29
  • 2021-05-16
  • 2021-10-12
  • 2021-06-17
相关资源
相似解决方案