Fall back to system properties with Spring framework

By Java bug | March 2, 2009 | 463 views
Category Java


About author  I am Java professional, working on java and Portal technoglies from last 5 years. I start techartifact with my some friends to share our knowledge and tips with world. Read more from this author


Spring allows to you, to fall-back on system properties, if you not added any corresponding values with that.
That is really a cool feature. If you need to look up,some system properties , you don’t need to do any thing
just configure your bean and Spring will take care that.

These are the some of SYSTEM_PROPTTIRES that you set in your bean

org.springframework.beans.factory.config.PropertyPlaceholderConfigurer

SYSTEM_PROPERTIES_MODE_FALLBACK       Check system properties if not resolvable in the specified properties.
SYSTEM_PROPERTIES_MODE_NEVER          Never check system properties.
SYSTEM_PROPERTIES_MODE_OVERRIDE       Check system properties first, before trying the specified properties.

see here for more information PropertyPlaceholderConfigurer

Read more post on Java Spring 

Leave a Comment

Name:

E-Mail :

Website :

Comments :