@org.springframework.beans.factory.annotation.Autowired(required=true)


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就好了
上一篇:java – Spring 3.0真的支持JSR-286吗?


下一篇:访问taotao-portal服务406问题 - HTTP Status 406 (httpclient调用)