← 返回首页
spring-boot-tutorials/spring-boot-conditional-bean at develop · StackTipsLab/spring-boot-tutorials · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Latest commit

 

History

History
 
 
 develop
Top

readme.md

Choosing from Multiple Bean Implementations in Spring Boot

If you have multiple implementations of the same interface, Spring needs to know which bean to inject into a class.

In this article, we will explore what are the different approaches to injecting beans conditionally when you have multiple implantation of a component or service.

Related topics:

Footer

© 2026 GitHub, Inc.