paip . 解决spring No unique bean of type [com.mijie.homi.search.service.index.MoodUserIndexService]
来源:互联网 发布:梦入神机 知乎 编辑:程序博客网 时间:2024/06/04 20:06
paip . 解决spring No unique bean of type [com.mijie.homi.search.service.index.MoodUserIndexService] is defined: expected single matching bean but found 2: [moodUserIndexService, searchResultProser]
作者Attilax 艾龙, EMAIL:1466519819@qq.com
来源:attilax的专栏
地址:http://blog.csdn.net/attilax
moodUserIndexService>>>> searchResultProser >>>>searchResultProserxxxx
所有的类都无需致命,全部@Component
使用基类的时候..必须指定beanid..
@Autowired @Qualifier("moodUserIndexService")
private MoodUserIndexService moodUserService;
或者。
@Resource (name="moodUserIndexService")
MoodUserIndexService matchService;
spring No unique bean of type 基类 子类
spring的自动装配(default-autowire="byName") 也不行。。。要是加了子类,必须修改调用父class的
code..应该是spring的一个bug...
作者Attilax 艾龙, EMAIL:1466519819@qq.com
来源:attilax的专栏
地址:http://blog.csdn.net/attilax
moodUserIndexService>>>> searchResultProser >>>>searchResultProserxxxx
所有的类都无需致命,全部@Component
使用基类的时候..必须指定beanid..
@Autowired @Qualifier("moodUserIndexService")
private MoodUserIndexService moodUserService;
或者。
@Resource (name="moodUserIndexService")
MoodUserIndexService matchService;
spring No unique bean of type 基类 子类
spring的自动装配(default-autowire="byName") 也不行。。。要是加了子类,必须修改调用父class的
code..应该是spring的一个bug...
0 0
- paip . 解决spring No unique bean of type [com.mijie.homi.search.service.index.MoodUserIndexService]
- spring exception--No unique bean of type
- Spring注解No unique bean of type
- No unique bean of type [ *.service.*Service] is defined
- No unique bean of type
- No unique bean of type
- Spring JavaConfig - NoSuchBeanDefinitionException: No unique bean of type
- No qualifying bean of type 'com.zjw.service.SysService'错误
- BeanCreationException: No unique bean of type
- BeanCreationException: No unique bean of type
- No unique bean of type [com.yuanv.backstage.dao.SysUserDao] is defined: expected single matching bea
- org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.yuanv.b
- spring 依赖注入用@Autowired报错 No unique bean of type
- No qualifying bean of type [com.zc.service.IFancyService] found for dependency
- No matching bean of type [com.spw.service.UserService] found for dependency
- No qualifying bean of type [com.it.service.DeptService] found for dependency
- NoSuchBeanDefinitionException: No matching bean of type [com.piesat.web.service.SelectItemsService]
- Spring的JUnit错误:NoSuchBeanDefinitionException: No unique bean of type,expected single matching bean but found 2 [dataSource1,data
- 一个老板骂人的10句话!赤裸裸,但有道理!
- 算法--写一个函数检查字符是否是整数,如果是返回其整数值
- Url中传中文名特殊字符处理
- Drupal Notes about of Temporary Files Directory
- 判断一个文件是否是符号链接
- paip . 解决spring No unique bean of type [com.mijie.homi.search.service.index.MoodUserIndexService]
- GestureDetector.OnGestureListener 详解
- 有关Filter(过滤器)实现禁用缓存和使用缓存操作的实现
- 记住2014年1月1日
- 正则表达式学习与总结
- Hibernate缓存机制
- 二叉树遍历的各种算法
- <学习笔记>jsp页面画表格固定列数的方法
- 基于C#开发 Windows Embedded Compact 7 应用