Exception in thread "main" org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qua
来源:互联网 发布:淘宝游戏王正版 编辑:程序博客网 时间:2024/06/03 05:08
Exception in thread "main" org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'com.myflow.Component.workflow.WorkflowServiceInter' available: expected single matching bean but found 2: workflowService,workflowServiceInter
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveNamedBean(DefaultListableBeanFactory.java:1041)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:345)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:340)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1090)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveNamedBean(DefaultListableBeanFactory.java:1041)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:345)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:340)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1090)
at com.myflow.util.Test.main(Test.java:17)
解决办法
spring-mybatis.xml中。出现重复的扫描包,将其中一个去掉,或者将路径写的更具体一点。避免冲突
阅读全文
0 0
- Exception in thread "main" org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qua
- Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException
- Spring 中 Exception in thread "main" org.springframework.beans.factory.BeanCreationException:问题解决
- Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactor
- Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating b
- Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Li
- Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.beans.factory.annotation
- Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Li
- org.springframework.beans.factory.NoUniqueBeanDefinitionException异常问题
- Cause:org.springframework.beans.factory.NoUniqueBeanDefinitionException
- 使用maven打包jar后 执行jar包问题,Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefi
- Spring报错:org.springframework.beans.factory.NoUniqueBeanDefinitionException
- maven打包包含依赖jar Exception in thread "main" org.springframework.beans.fa
- Exception in thread "main" org.hibernate.HibernateException: No CurrentSessionContext configured!
- Exception in thread "main" org.hibernate.HibernateException: No CurrentSessionContext configured!
- Spring—nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException
- 严重 Exception starting filter springSecurityFilterChain org.springframework.beans.factory.NoSuchBeanD
- org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML doc
- 1!+2!+...+n!
- HTML CSS
- 写golang restful接口时遇到的一个坑
- SSM---访问后台提示HTTP Status 404
- 关于Server Tomcat v9.0 Server at localhost failed to start.的分析
- Exception in thread "main" org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qua
- javaweb中的过滤器学习总结(1)---myeclipse下的第一个Filter
- JAVA中JButton常用设置
- WEBGL学习【十】运动模型
- 《HTML之base标签》
- hadoop 文件分块,block与split关系
- 整理&收藏的一些机器学习比较好的博客
- 八大排序算法的Python实现
- 处理utf-8不能编译的中文注释