Skip to content

theothermattm/spring-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spring-utils

Some handy extensions or additions to the Spring Framework that I've found useful in the past.

SystemPropertyProfileContextInitializer

Spring ApplicationContextInitializer which can be used to activate different Spring environment profiles based on a system property instead of the default "spring.profiles.active" property.

This can be useful if you don't have much control over your deployed environments and want to use existing, standardized system properties to activate spring profiles.

For example, if you already have a standard system property defined on all your deployed environments named com.mycompany.environment which gets set to values like "test" / "staging" / "production"

You can use this approach to activate Spring environment profiles based on those existing properties instead of having to define another system property.

See javadoc for usage details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages