Project

General

Profile

feature request #8187

Updated by Andreas Kohlbecker about 5 years ago

the method `AbstractWebApplicationConfigurer.findProperty(String property, boolean required)` implements a similar strategy as the Spring `AbstractEnvironment` which has a configurable strategy to resolve properties via the `PropertySourcesPropertyResolver` 

 See  

 1. `org.springframework.core.env.StandardEnvironment` searches for properties from the sources in the `org.springframework.core.env.StandardEnvironment`the following order: 
     1. system properties 
     2. system environment variables 
 2. `StandardServletEnvironment` searches for properties from the sources in the following order 
     1. "servletConfigInitParams" 
     2. "servletContextInitParams" 
     3. "jndiProperties" 

 Using the Şpring `Environment` would simplify setting up test an production environments a lot since we would be able to use application properties files and System properties to configure hibernate, spring profiles etc... 
 


Back