Spring Boot application.properties custom variable in a non-controller class

前端 未结 0 674
北荒
北荒 2021-02-07 06:39

How come application.properties will work in a RestController, but not in a service class?

//application.properties
secured.test=test

Works Perfe

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