Parameter 0 of constructor in org.springframework.data.jpa.repository.support.DefaultJpaContext required a bean of type 'java.util.Set' that could not be found.
See original GitHub issueAfter migrating to SpringBoot 1.4.1, Spring Data Hopper-SR3 has updated and all projects are throwing the exception:
If I reduce the dependency to Hopper-SR2 it works fine again.
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in org.springframework.data.jpa.repository.support.DefaultJpaContext required a bean of type 'java.util.Set' that could not be found.
Action:
Consider defining a bean of type 'java.util.Set' in your configuration.
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (6 by maintainers)
Top Results From Across the Web
Migrating from Migrate to Spring MVC 4 + Hibernate5
Based on the spring boot error message, it fails to build the DefaultJpaContext bean whose constructor requires Set<javax.persistence.
Read more >parameter 0 of constructor in required a bean of type 'java ...
parameter 0 of constructor in required a bean of type 'java.lang.string' that could not be found. @Qualifier annotation is needed to select exact...
Read more >Parameter 0 Of Constructor In Required A Bean Of ... - ADocLib
import org.springframework.data.jpa.repository.config. ... is auto-wired as a bean type that could not be found in the spring boot context.
Read more >spring-projects/spring-data - Gitter
BeanInstantiationException : Failed to instantiate [org.springframework.data.jpa.repository.support.DefaultJpaContext]: Constructor threw exception; ...
Read more >the bean 'mvccontentnegotiationmanager' could not ... - You.com
Private Search. You are not the product, we'll never share your data ... is java.lang.AbstractMethodError at org.springframework.beans.factory.support.
Read more >
Top Related Medium Post
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top Related StackOverflow Question
The only solution that I found is to manually exclude JpaRepositoriesAutoConfiguration from spring boot and manually configure it:
Thank you Demonian, all good works if you configure next configuration DB class code:
And in YAML file write next data, example for postgres:
And all good works!!! Thanks all. Regards.