Let’s establish some vocabulary, before we begin. When we talk about configuration in Spring, we’re usually talking about the inputs into the Spring framework’s various
ApplicationContext implementations that help the container understand what it is you want done. This might be an XML file to be fed into a
ClassPathXmlApplicationContext, or Java classes annotated a certain way to be fed into an
Another type of configuration, as nicely described in the 12-Factor application manifesto, is any of an application’s that is likely to vary between deploys (staging, production, developer environments, etc.), like service credentials and hostnames.