mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
4e32615b22
Prior to this commit, SpringFactoriesLoader discovered all registered factory implementations for a given factory type even if duplicates were registered within a single META-INF/spring.factories file or in multiple such files in the classpath. This commit updates the internals of SpringFactoriesLoader so that duplicate registrations are ignored, thereby aligning with the well-known semantics for java.util.ServiceLoader in this regard. Closes gh-24985