Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
00_TheProblem/src
01_TheSolution_ByBeanType/src
02_TheSolution_ByMemberName/src
03_TheSolution_ByQualifier/src
04_TheSolution_ByCustomQualifierAnnotation/src
05_TheSolution_ByPrimary/src
06_TheSolution_ByProfile/src
07_TheSolution_ByProfileAndPrimary/src
gradle/wrapper
.gitignore
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

Spring : Bean Qualification

This example shows different techniques to qualifying competing beans.

It is comprised of a number of modules:

  • 00_TheProblem shows the problem if you do not attempt to qualify the injection
  • 0x_TheSolution_XXX these modules show different solutions, - ie: how you can solve the issue

Building and running the modules

Here's how you build an run a specific module:

 ./gradlew 02_TheSolution_ByMemberName:test

Notice the module name.

You can’t perform that action at this time.