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.
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!
Peter Rietzler opened DATACMNS-989 and commented
org.springframework.data.repository.config.CustomRepositoryImplementationDetector#detectCustomImplementation
scans all base packages, but ignoresexcludeFilters
.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
forxxx.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!
Referenced from: pull request #195
Backported to: 1.13.1 (Ingalls SR1), 1.12.8 (Hopper SR8)
The text was updated successfully, but these errors were encountered: