Retrieving Values From Spring Properties File

1 min read

How to retrieve values from the application.properties
file
The application.properties
File
mode=development
The Java File
@Value(value = "${mode}")
private String mode;
0
Subscribe to my newsletter
Read articles from Deon Slabbert directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Deon Slabbert
Deon Slabbert
I am a fullstack software developer with 35 years experience building enterprise applications for the financial sector and have a passion for learning & teaching others the tools of the trade