当前位置: 代码迷 >> Ruby/Rails >> Error creating bean with name 'menuController' Injection of autowired dependency…
  详细解决方案

Error creating bean with name 'menuController' Injection of autowired dependency…

热度:581   发布时间:2016-04-29 02:22:43.0
Error creating bean with name 'menuController': Injection of autowired dependency……
出现了一大串错误,Error creating bean with name 'userController': Injection of autowired dependencies failed。。。。。 

查了代码后发现,[email protected]("userService"),以至于因此导致一系列错误。


在控制层调用业务层,必须在业务层先进行注解:@Service("userService");

然后在控制层注入业务层:

@Resource
private IUserService userService;

  相关解决方案