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就好了