Cognitive Technology Team
Mar 21, 2022 · Backend Development
Why Spring @Bean Aliases Disappear in Map Injection and How to Restore Them
When a Spring @Bean is defined with multiple names, only the first name becomes the bean identifier while the others become aliases that are ignored by type‑based Map injection, causing dynamic data‑source routing to fail unless the aliases are manually added back into the map.
BackendJavaMap Injection
0 likes · 5 min read
