Spring Boot accessing value from application.properties returns null

后端 未结 0 989
时光取名叫无心
时光取名叫无心 2021-01-13 11:41

i have these key on the application.properties

my.secret.key=somerandomtext

and then i use it like this

@Component
public clas         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题