Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0 M2 (Kay), 1.13.1 (Ingalls SR1), 1.12.8 (Hopper SR8)
-
Component/s: Repositories
-
Labels:None
-
Pull Request URL:
-
Sprint:Ingalls GA
Description
org.springframework.data.repository.config.CustomRepositoryImplementationDetector#detectCustomImplementation scans all base packages, but ignores excludeFilters.
This leads e.g. to problems if there are 2 classes with the same name on the classpath, but one of them should be ignored, e.g.
xxx.MyRepository
xxx.impl.MyRepositoryImpl
xxx.whatever.MyRepositoryImpl
I've set the excludeFilters for xxx.whatever.*, but still get:
Caused by: java.lang.IllegalStateException: Ambiguous custom implementations detected! Found xxx.impl.MyRepositoryImpl,xxx.whatever.MyRepositoryImpl but expected a single implementation!