org.springframework.beans.factory.NoUniqueBeanDefinitionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Spring10种常见异常解决方法
    via by Unknown author,
  • Spring10种常见异常解决方法
    via by Unknown author,
  • Spring Batch with two different datasource issue
    via by Unknown author,
    • org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.herman.ss.pojo.Person] is defined: expected single matching bean but found 7: person0,person1,person2,person3,person4,person5,person6 at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:313) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:985) at com.herman.ss.test.Test0.test1(Test0.java:35) at com.herman.ss.test.Test0.main(Test0.java:111)

    Users with the same issue

    batwalrus76
    2 times, last one,
    Pilleo
    33 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    4 more bugmates