mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
add additional spring configuration metadata
This commit is contained in:
@@ -35,12 +35,12 @@ public class NacosConfigProperties {
|
||||
private String serverAddr;
|
||||
|
||||
/**
|
||||
* nacos config encode
|
||||
* encode for nacos config content.
|
||||
*/
|
||||
private String encode;
|
||||
|
||||
/**
|
||||
* nacos config group
|
||||
* nacos config group, group is config data meta info.
|
||||
*/
|
||||
private String group = "DEFAULT_GROUP";
|
||||
|
||||
@@ -49,37 +49,37 @@ public class NacosConfigProperties {
|
||||
*/
|
||||
private String prefix;
|
||||
/**
|
||||
* nacos config dataId contentType
|
||||
* the content type of nacos config content.
|
||||
*/
|
||||
private String contentType = "properties";
|
||||
|
||||
/**
|
||||
* timeout to get configuration
|
||||
* timeout for get config from nacos.
|
||||
*/
|
||||
private int timeout = 3000;
|
||||
|
||||
/**
|
||||
* endpoint for Nacos
|
||||
* endpoint for Nacos, the domain name of a service, through which the server address can be dynamically obtained.
|
||||
*/
|
||||
private String endpoint;
|
||||
|
||||
/**
|
||||
* Nacos namespace
|
||||
* namespace, separation configuration of different environments.
|
||||
*/
|
||||
private String namespace;
|
||||
|
||||
/**
|
||||
* Nacos access key
|
||||
* access key for namespace.
|
||||
*/
|
||||
private String accessKey;
|
||||
|
||||
/**
|
||||
* Nacos secret key
|
||||
* secret key for namespace.
|
||||
*/
|
||||
private String secretKey;
|
||||
|
||||
/**
|
||||
* nacos config context path
|
||||
* context path for nacos config server.
|
||||
*/
|
||||
private String contextPath;
|
||||
|
||||
|
@@ -1,32 +1,20 @@
|
||||
{
|
||||
"properties": [
|
||||
{
|
||||
"name": "spring.cloud.nacos.config.server-addr",
|
||||
"type": "java.lang.String",
|
||||
"defaultValue": "",
|
||||
"description": "nacos config server address."
|
||||
},
|
||||
{
|
||||
"name": "spring.cloud.nacos.config.timeout",
|
||||
"type": "java.lang.Long",
|
||||
"defaultValue": 3000,
|
||||
"description": "sentinel api port."
|
||||
},
|
||||
{
|
||||
"name": "spring.cloud.sentinel.dashboard",
|
||||
"type": "java.lang.String",
|
||||
"description": "sentinel dashboard address, won't try to connect dashboard when address is empty."
|
||||
},
|
||||
{
|
||||
"name": "spring.cloud.sentinel.filter.order",
|
||||
"type": "java.lang.Integer",
|
||||
"defaultValue": "Integer.MIN_VALUE",
|
||||
"description": "Sentinel filter chain order, will be set to FilterRegistrationBean."
|
||||
},
|
||||
{
|
||||
"name": "spring.cloud.sentinel.filter.urlPatterns",
|
||||
"type": "java.util.List",
|
||||
"description": "URL pattern for Sentinel filter, default contains '/*'."
|
||||
}
|
||||
]
|
||||
}
|
||||
{"properties": [
|
||||
{
|
||||
"name": "spring.cloud.nacos.config.encode",
|
||||
"type": "java.lang.String",
|
||||
"defaultValue": "UTF-8",
|
||||
"description": "default encode for nacos config content."
|
||||
},
|
||||
{
|
||||
"name": "spring.cloud.nacos.config.prefix",
|
||||
"type": "java.lang.String",
|
||||
"defaultValue": "${spring.application.name}",
|
||||
"description": "the prefix of dataId, nacos config data meta info. dataId = prefix + '-' + ${spring.active.profile} + `-` + ${spring.cloud.nacos.config.content-type}."
|
||||
},
|
||||
{
|
||||
"name": "spring.cloud.nacos.config.content-type",
|
||||
"type": "java.lang.String",
|
||||
"defaultValue": "properties",
|
||||
"description": "the content type of nacos config content, only support properties now."
|
||||
}
|
||||
]}
|
Reference in New Issue
Block a user