Spring Boot @Value Properties

后端 未结 8 1154
刺人心
刺人心 2020-12-10 10:05

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

8条回答
  •  感情败类
    2020-12-10 10:55

    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

提交回复
热议问题