Tutorial: Spring Boot @ConfigurationProperties: Binding external configurations to POJO classes
-
Java - 1.8.x
-
Maven - 3.x.x
-
MySQL - 5.x.x
1. Clone the application
git clone https://github.com/callicoder/spring-boot-configuration-properties-demo.git
2. Build and run the app using maven
mvn package
java -jar target/config-properties-demo-0.0.1-SNAPSHOT.jar
Alternatively, you can run the app directly without packaging like this -
mvn spring-boot:run
The app will start running at http://localhost:8080.