BestHub
Discover
Artificial IntelligenceBackend DevelopmentMobile DevelopmentProduct ManagementCloud NativeFrontend DevelopmentFundamentalsBig DataCloud ComputingGame DevelopmentR&D ManagementOperationsDatabasesInformation SecurityBlockchainUser Experience DesignInterview ExperienceIndustry Insights
View all →
TopicsTagsTrendsRanking
Sign in
Discover
Artificial Intelligence Backend Development Mobile Development Product Management Cloud Native Frontend Development Fundamentals Big Data Cloud Computing Game Development R&D Management Operations Databases Information Security Blockchain User Experience Design Interview Experience Industry Insights View all →
TopicsTagsTrendsRanking
Sign in
  1. Home
  2. / Tags
  3. / Map Injection
The Dominant Programmer
The Dominant Programmer
Apr 12, 2024 · Backend Development

Implementing the Strategy Pattern in Spring with Built‑in @Autowired

The article shows how to replace bulky if‑else logic in Spring Boot by using the strategy pattern together with a factory that autowires all Strategy implementations into a Map, explains the @Autowired semantics for collections, and provides concrete code examples.

AutowiredJavaMap Injection
0 likes · 8 min read
Implementing the Strategy Pattern in Spring with Built‑in @Autowired
Cognitive Technology Team
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
Why Spring @Bean Aliases Disappear in Map Injection and How to Restore Them
BestHub

Editorial precision for engineers who prefer signal over noise. Deep reads, careful curation, and sharper frontiers in software.

Best Hub for Dev. Power Your Build.
Navigation
Discover Tags Topics System Status Privacy Terms Rss Feed