Error creating bean with name 'menuController': Injection of autowired dependency……
来源:互联网 发布:java静态变量初始化 编辑:程序博客网 时间:2024/05/17 23:37
出现了一大串错误
Error creating bean with name 'userController': Injection of autowired dependencies failed。。。。。
查了代码后发现,原来是在UserServiceImpl中忘了写一句话@Service("userService"),以至于因此导致一系列错误。
在控制层调用业务层,必须在业务层先进行注解:
@Service("userService");
然后在控制层注入业务层:
@Resourceprivate IUserService userService;
43 0
- 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
- Error creating bean with name '****': Injection of autowired dependencies failed
- bean依赖注入错误:Error creating bean with name 'itemService': Injection of autowired dependencies failed
- Error creating bean with name 'com.you.user.dao.StudentDaoTest': Injection of autowired dependencies
- Error creating bean with name 'adminUserController': Injection of autowired dependencies failed;
- Error creating bean with name 'xx': Injection of autowired dependencies failed
- Error creating bean with name 'xxxx': Injection of autowired dependencies failed;
- spring问题:Error creating bean with name 'articleController': Injection of autowired dependencies fail
- Error creating bean with name 'empresasDAO': Injection of autowired dependencies failed up vote 0
- jboss服务启动时报Error creating bean with name'addressService': Injection of autowired dependencies faile
- Error creating bean with name 'contentTypeAdminController': Injection of autowired dependencies fail
- Error creating bean with name 'XXX': Injection of autowired dependencies failed解决办法
- Java-4-解决报错:Error creating bean with name 'globalAppObj': Injection of autowired dependencies failed
- 出现:Error creating bean with name 'xxxxxController': Injection of autowired dependencies failed;
- Error creating bean with name '***(类名)': Injection of autowired dependencies failed;
- 【SPRINGMVC】Error creating bean with name 'projectController': Injection of autowired dependencies
- apache 与 tomcat 整合
- C#web.config连接Sqlserver数据库配置
- mysql触发器
- ArcGIS教程:欧氏方向——空间分析
- (四)autoCode代码生成器,velocity变量详解
- Error creating bean with name 'menuController': Injection of autowired dependency……
- JS判断userAgent
- QTP11试用期已过仍可以继续使用
- PHP获取post中的json数据
- C/C++内存管理和指针的基础知识
- Closure Library 1 -- Dependence Management
- Java与字符编码问题详谈
- QT编程器
- leetcode: Longest Substring Without Repeating Characters