读取application.properties配置文件

示例:

github.redirect.uri=http://localhost:8080/callback


java代码中通过@Value注解读取配置:
@Value("${github.redirect.uri}")
private String redirectUri;


posted @ 2020-11-02 07:31  Mr_sven  阅读(802)  评论(0编辑  收藏  举报