From the course: Spring: Framework in Depth

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Work with the environment

Work with the environment

From the course: Spring: Framework in Depth

Start my 1-month free trial

Work with the environment

- [Frank] Most applications cannot be deployed to just one data center anymore, and robust configuration patterns are needed to support this. The use of environment variables and properties is one of the most common ways of injecting data into a running application to Flex by things like data center or environment. Spring provides an environment abstraction that allows you to build applications that Flex configuration based on environment variables. The environment within Spring is populated by default with all of the system environment variables at the run time of the application. This environment construct is also populated and can be supplemented by properties via run time or by properties files, among other things. This allows you to provide a set of default configuration files that can be overridden at run time, and there's a very detailed hierarchy of like 15 layers deep in the Spring documentation on the order in…

Contents