org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'liquibaseDao' defined in class path resource [META-INF/spring/restore-spring.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.google.common.base.Supplier]: : No qualifying bean of type [com.google.common.base.Supplier] is defined: expected single matching bean but found 2: backupDataSourceSupplier,databaseService; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.google.common.base.Supplier] is defined: expected single matching bean but found 2: backupDataSourceSupplier,databaseService

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

Samebug tips

,
Expert tip

Springboot auto-configuration is disabled when you try to use WebMvcConfigurerAdapter and @EnableWebMvc. If WebConfig is not of the essence, remove it and use SpringBoot auto-configuration.

,
Expert tip

If you want to keep using @EnableWebMvc annotation, you have to add the code on the first answer of this page: https://goo.gl/JoHTKU to your code

Solutions on the web

via Atlassian JIRA by Kirill Frolov, 1 year ago
Error creating bean with name 'liquibaseDao' defined in class path resource [META-INF/spring/restore-spring.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.google.common.base.Supplier]: : No qualifying
via Atlassian JIRA by Kirill Frolov, 1 year ago
Error creating bean with name 'liquibaseDao' defined in class path resource [META-INF/spring/restore-spring.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.google.common.base.Supplier]: : No qualifying
via Atlassian JIRA by Jere Krischel, 1 year ago
Error creating bean with name 'liquibaseDao' defined in class path resource [META-INF/spring/restore-spring.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.google.common.base.Supplier]: : No qualifying
via Atlassian JIRA by Jere Krischel, 1 year ago
Error creating bean with name 'liquibaseDao' defined in class path resource [META-INF/spring/restore-spring.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.google.common.base.Supplier]: : No qualifying
via Stack Overflow by Paul Fournel
, 2 years ago
Error creating bean with name 'UserSProcService' defined in file [****/target/classes/com/zozor/user/sproc/UserSProcServiceImpl.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type
via Stack Overflow by Don Branson
, 1 year ago
/DocumentationPluginsBootstrapper.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [springfox.documentation.spi.service.RequestHandlerProvider]: : Error creating bean with name 'webMvcRequestHandlerProvider' defined in URL
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'liquibaseDao' defined in class path resource [META-INF/spring/restore-spring.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.google.common.base.Supplier]: : No qualifying bean of type [com.google.common.base.Supplier] is defined: expected single matching bean but found 2: backupDataSourceSupplier,databaseService; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.google.common.base.Supplier] is defined: expected single matching bean but found 2: backupDataSourceSupplier,databaseService
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:742)

Users with the same issue

2 times, 1 hour ago
2 times, 1 month ago
6 times, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago
5 times, 5 months ago

Write tip

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