Error creating bean with name 'menuController': Injection of autowired dependency……
2014-07-11 15:00
375 查看
出现了一大串错误
查了代码后发现,原来是在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 'menuController': Injection of autowired dependenc
- spring问题:Error creating bean with name 'articleController': Injection of autowired dependencies fail
- Error creating bean with name 'adminUserController': Injection of autowired dependencies failed;
- 【SPRINGMVC】Error creating bean with name 'projectController': Injection of autowired dependencies
- Error creating bean with name 'assetQueryController': Injection of autowired dependencies failed; ne
- Error creating bean with name 'contentTypeAdminController': Injection of autowired dependencies fail
- Error creating bean with name 'xx': Injection of autowired dependencies failed
- 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 'xxxx': Injection of autowired dependencies failed;
- rror creating bean with name 'adminController': Injection of autowired dependencies failed;
- Error creating bean with name '***(类名)': Injection of autowired dependencies failed;
- Java-4-解决报错:Error creating bean with name 'globalAppObj': Injection of autowired dependencies failed
- springMVC项目启动时出现bean注入失败的情况:Error creating bean with name 'XXX': Injection of autowired dependencies
- Error creating bean with name 'XXX': Injection of autowired dependencies failed解决办法
- spring boot 报错 Error creating bean with name 'indexController': Injection of autowired dependencies
- Error creating bean with name '****': Injection of autowired dependencies failed
- bean依赖注入错误:Error creating bean with name 'itemService': Injection of autowired dependencies failed