Could not autowire field: private com.rhyton.pems.core.service.IEnergyPlanService com.rhyton.pems.we
2013-07-18 10:53
483 查看
异常信息:
Could not autowire field: private com.rhyton.pems.core.service.IEnergyPlanService com.rhyton.pems.web.controller.EnergyProcurementPlanController.energyPlanService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'energyPlanServiceImp': Injection of autowired dependencies failed;
解决方案:
检查你的Controller层、service层、Dao层中 各个类应有的注解是否忘记写了。
Could not autowire field: private com.rhyton.pems.core.service.IEnergyPlanService com.rhyton.pems.web.controller.EnergyProcurementPlanController.energyPlanService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'energyPlanServiceImp': Injection of autowired dependencies failed;
解决方案:
检查你的Controller层、service层、Dao层中 各个类应有的注解是否忘记写了。
相关文章推荐
- Could not autowire field: private java.lang.Integer com.taotao.sso.service.impl.UserServiceImpl.SSO_
- Could not autowire field: private java.lang.Integer com.taotao.sso.service.impl.UserServiceImpl.SSO_
- Could not autowire field: private com.dounion.ygyc.biz.business.BizArchivesBusiness com.dounion.ygyc
- Could not autowire field: private com.xxx.dao(已解决)
- 个人笔记 org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.
- Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field
- git错误--ssh: Could not resolve hostname ssh.github.com: Name or service not known--解决方式
- 远程调用其他系统bean报EJBCLIENT000037: Could not load ejb proxy class com.tgb.itoo.basic.service.xxBean的错误
- Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field
- Could not instantiate bean class [com.bjsxt.service.UserService]: No default constructor found;
- com.sun.xml.internal.ws.model.RuntimeModelerException: class:com.mark.cxf.service could not be found
- 【问题解决】 web项目启动不了 org.springframework.beans.factory.BeanCreationException: Could not autowire field:
- idedvicesyslog ERROR: Could not start service com.apple.syslog_relay.
- [SpringMVC] Could not autowire field 异常的一种可能原因
- Webservice-cxf:Could not find portType named {http://impl.client.tianyuan.com/}SchedulerService
- Spring JPA Could not autowire field
- SpringMVC 错误分析:@Autowired Could not autowire field
- git错误--ssh: Could not resolve hostname ssh.github.com: Name or service not known--解决方式
- Error:Could not download artifact 'gradle-core.jar (com.android.tools.build:gradle-core:1.3.0-beta3)
- git无法解析主机名 ssh: Could not resolve hostname gitee.com: Name or service not known