DI based on @Profile
I wannna configure my system like below.
I have 3 profiles in my system (client1,cleint 2,client 3)
I have 2 implementations for a interface each defined under profile (client1 ,client 2)
The problem is that my current active profile is "client 3" , and there is no bean implementation under this profile for the above bean, so want my system to use bean from profile "client1" automatically.
How can I achieve it.
Thanks in advance.
Configure the bean outside the profile and override that definition for client2 only...