Traditionally, we would use declarative configuration with XML configuration files, but after Spring Framework 3.0 was released, it has been possible to configure the Spring application context by using programmatic configuration. This is our weapon of choice when we are configuring the application context of our application.
We can configure the Spring application context by following these steps:
The actual values of the configuration parameters are stored in a properties file called
application.properties. This file contains database connection details, ...