spring-boot: 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.
After 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.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (6 by maintainers)
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.
The solution
@SpringBootApplication(scanBasePackages = {"boot.registration"} , exclude = JpaRepositoriesAutoConfiguration.class)worked for me