Error creating bean with name 'menuController': Injection of autowired dependency……
2014-10-03 17:19
495 查看
出现了一大串错误
查了代码后发现,原来是在UserServiceImpl中忘了写一句话@Service("userService"),以至于因此导致一系列错误。
在控制层调用业务层,必须在业务层先进行注解:
然后在控制层注入业务层:
Error creating bean with name 'userController': Injection of autowired dependencies failed。。。。。
查了代码后发现,原来是在UserServiceImpl中忘了写一句话@Service("userService"),以至于因此导致一系列错误。
在控制层调用业务层,必须在业务层先进行注解:
@Service("userService");
然后在控制层注入业务层:
@Resource private IUserService userService;
相关文章推荐
- Error creating bean with name 'menuController': Injection of autowired dependency……
- Error creating bean with name 'menuController' Injection of autowired dependency…
- Error creating bean with name 'xxxx': Injection of autowired dependencies failed;
- Error creating bean with name 'menuController': Injection of autowired dependenc
- Error creating bean with name 'contentTypeAdminController': Injection of autowired dependencies fail
- Error creating bean with name 'assetQueryController': Injection of autowired dependencies failed; ne
- Error creating bean with name 'controller':Injection of resource dependencies failed
- spring问题:Error creating bean with name 'articleController': Injection of autowired dependencies fail
- 【SPRINGMVC】Error creating bean with name 'projectController': Injection of autowired dependencies
- Error creating bean with name 'adminUserController': Injection of autowired dependencies failed;
- Error creating bean with name 'userService': Injection of resource methods failed; nested exception is org.springframework.beans
- bean依赖注入错误:Error creating bean with name 'itemService': Injection of autowired dependencies failed
- Error creating bean with name 'userService': Injection of resource methods failed; nested exception is org.springframework.beans
- Java-4-解决报错:Error creating bean with name 'globalAppObj': Injection of autowired dependencies failed
- rror creating bean with name 'adminController': Injection of autowired dependencies failed;
- 关于Error creating bean with name 'loginDao': Injection of resource methods failed; 问题
- springMVC项目启动时出现bean注入失败的情况:Error creating bean with name 'XXX': Injection of autowired dependencies
- Error creating bean with name 'roleServiceImpl': Injection of autowired dependencies failed;
- Error creating bean with name 'userServiceImpl': Injection of autowired dependencies failed
- Error creating bean with name 'userServiceImpl': Injection of autowired dependencies failed