spring 配置屬性文件 @Configuration @ConfigurationProperties(prefix = "netarch") public class NetarchorProperties { private String apiAccount; private String accessKey; public String getApiAccount() { return apiAccount; } public void setApiAccount(String apiAccount) { this.apiAccount = apiAccount; } public String getAccessKey() { return accessKey; } public void setAccessKey(String accessKey) { this.accessKey = accessKey; } prefix 在application.properties配置 |
|