Category: spring tutorials
-
Spring Profiles
Sometimes we may need to enable some Beans based on some configuration. For this purpose we can use spring profiles. By using spring bean we can say if a particular profile is active then enable a Bean. This concept will be more clear with an example. Assume we have 2 beans and we want to…