Tag Archives: spring framework

Spring C-notation

In a previous post, I talked about¬†Spring P-notation. ¬†In this blog post, I will give an example of the Spring C-notation for constructor arguments. The C-notation namespace needs to be added to your configuration file. All that is left is … Continue reading

Posted in Java | Tagged , , , , , , , , , | Leave a comment

Get the active Spring profiles

Inject the Environment object The Environment object has getActiveProfiles that returns an array of active profiles. To get the first active profile, do…

Posted in Spring, Spring Profile | Tagged , , , | Leave a comment