This post walks you through the steps of Handling Properties File in Java Application.

What you'll need

  • JDK 1.7+
  • Maven 3+

Stack

  • Java

Project structure

├── src
│   └── main
│       ├── java
│       │   └── com
│       │       └── hellokoding
│       │           └── util
│       │               ├── ApplicationProperties.java
│       │               └── Main.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-java.git

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