Field idWorker in com.macro.mall.portal.service.impl.OmsPortalOrderServiceImpl required a bean of type 'com.macro.mall.portal.util.IdWorker' that could not be found.

 

Description:

Field user in com.crab.bookol.controller.UserController required a bean of type 'com.macro.mall.portal.util.IdWorker' that could not be found.

The injection point has the following annotations:
    - @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

Consider defining a bean of type 'com.macro.mall.portal.util.IdWorker' in your configuration.

错误原因:没有加注解

在com.macro.mall.portal.util.IdWorker类加上@Componet就好了

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2021-05-13
  • 2022-12-23
  • 2021-07-12
猜你喜欢
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2021-05-19
  • 2022-12-23
相关资源
相似解决方案