Merge pull request #80 from xiaolongzuo/1.x

Fix configuration specification
pull/89/head
xiaojing 6 years ago committed by GitHub
commit 87099c6851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,7 +16,6 @@
package org.springframework.cloud.alicloud.context.acm;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import com.alibaba.cloud.context.AliCloudServerMode;
@ -31,8 +30,7 @@ import com.alibaba.cloud.context.acm.AcmConfiguration;
@ConfigurationProperties(prefix = "spring.cloud.alicloud.acm")
public class AcmProperties implements AcmConfiguration {
@Value("${spring.cloud.alicloud.acm.server-mode:LOCAL}")
private AliCloudServerMode serverMode;
private AliCloudServerMode serverMode = AliCloudServerMode.LOCAL;
private String serverList = "127.0.0.1";
@ -49,7 +47,7 @@ public class AcmProperties implements AcmConfiguration {
private int timeout = 3000;
/**
* the AliYun endpoint2 for ACM
* the AliYun endpoint for ACM
*/
private String endpoint;

@ -44,20 +44,17 @@ public class AnsProperties implements AnsConfiguration {
/**
* LOCAL
*/
@Value("${spring.cloud.alicloud.ans.server-mode:LOCAL}")
private AliCloudServerMode serverMode;
private AliCloudServerMode serverMode = AliCloudServerMode.LOCAL;
/**
*
*/
@Value("${spring.cloud.alicloud.ans.server-list:127.0.0.1}")
private String serverList;
private String serverList = "127.0.0.1";
/**
*
*/
@Value("${spring.cloud.alicloud.ans.server-port:8080}")
private String serverPort;
private String serverPort = "8080";
/**
* spring.cloud.alicloud.ans.doms 使 spring.application.name

@ -1,31 +1,13 @@
{
"properties": [
{
"name": "spring.cloud.alicloud.ans.server.mode",
"type": "java.lang.String",
"defaultValue": "LOCAL",
"description": "Server mode."
},
{
"name": "spring.cloud.alicloud.ans.server.list",
"type": "java.lang.String",
"defaultValue": "127.0.0.1",
"description": "ANS server list."
},
{
"name": "spring.cloud.alicloud.ans.server.port",
"type": "java.lang.Integer",
"defaultValue": "80",
"description": "ANS server port."
},
{
"name": "spring.cloud.alicloud.ans.client.domains",
"name": "spring.cloud.alicloud.ans.client-domains",
"type": "java.lang.String",
"defaultValue": "",
"description": "Service name list, default value is ${spring.application.name}."
},
{
"name": "spring.cloud.alicloud.ans.client.env",
"name": "spring.cloud.alicloud.ans.env",
"type": "java.lang.String",
"defaultValue": "DEFAULT",
"description": "The env for ans, default value is DEFAULT."

Loading…
Cancel
Save