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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via verydemo.com by Unknown author, 1 year ago
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
via csdn.net by Unknown author, 1 year ago
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
via csdn.net by Unknown author, 1 year ago
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
via Stack Overflow by vvekselva
, 1 year ago
No qualifying bean of type [org.springframework.integration.MessageChannel] is defined: expected single matching bean but found 3: pushChannel,nullChannel,errorChannel
via Stack Overflow by Paperless
, 1 year ago
No qualifying bean of type [retryspring.RemoteCallService] is defined: expected single matching bean but found 2: remoteCallService,remoteCallServiceImpl
via GitHub by kazuki43zoo
, 2 years ago
No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 2: dataSourceTransactionManager,jpaTransactionManager
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 com.herman.ss.test.Test0.test1(Test0.java:35)
at com.herman.ss.test.Test0.main(Test0.java:111)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
33 times, 1 year ago
2 times, 10 months ago
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
5 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.