I have a Spring Boot application and in one of the classes, I try to reference a property from the application.properties file using @Value
. But, the property d
I had the similar issue and the above examples doesn't help me to read properties. I have posted the complete class which will help you to read properties values from application.properties file in SpringBoot application in the below link.
Spring Boot - Environment @Autowired throws NullPointerException