在配置文件application.properties里面配置,如下:
github.clint.id=1234567890在代码中,配置如下:
@Value("${github.clint.id}")private String clientId;即可读取配置项的值。