Reading From Spring Boot Property File

How to retrieve values from the application.properties file using the Spring Boot framework.

The application.properties File

mode=development

The Java File

@Value(value = "${mode}")
private String mode;