This post walks you through the steps of Handling Properties file in Spring Boot application.

What you'll need

  • JDK 1.8+
  • Maven 3+

Stack

  • Java
  • Spring Boot

Project structure

├── src
│   └── main
│       ├── java
│       │   └── com
│       │       └── hellokoding
│       │           └── util
│       │               ├── Application.java
│       │               ├── NestedProperties.java
│       │               └── SimpleProperties.java
│       └── resources
│           └── application.properties
└── pom.xml

Project dependencies


Properties file


Handling Properties file



Test


mvn clean package exec:java

Source code

[email protected]:hellokoding/handling-properties-file-springboot.git

https://github.com/hellokoding/handling-properties-file-springboot