spring-cloud-starter-alibaba-nacos-discovery
1. spring-config-metadata.json
{
"groups": [
{
"name": "management.endpoint.nacosdiscovery",
"type": "com.alibaba.cloud.nacos.endpoint.NacosDiscoveryEndpoint",
"sourceType": "com.alibaba.cloud.nacos.endpoint.NacosDiscoveryEndpoint"
},
{
"name": "spring.cloud.nacos.discovery",
"type": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties"
}
],
"properties": [
{
"name": "management.endpoint.nacosdiscovery.cache.time-to-live",
"type": "java.time.Duration",
"description": "Maximum time that a response can be cached.",
"sourceType": "com.alibaba.cloud.nacos.endpoint.NacosDiscoveryEndpoint",
"defaultValue": "0ms"
},
{
"name": "management.endpoint.nacosdiscovery.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable the nacosdiscovery endpoint.",
"sourceType": "com.alibaba.cloud.nacos.endpoint.NacosDiscoveryEndpoint",
"defaultValue": true
},
{
"name": "spring.cloud.nacos.discovery.access-key",
"type": "java.lang.String",
"description": "access key for namespace.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties"
},
{
"name": "spring.cloud.nacos.discovery.cluster-name",
"type": "java.lang.String",
"description": "cluster name for nacos .",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"defaultValue": "DEFAULT"
},
{
"name": "spring.cloud.nacos.discovery.enabled",
"type": "java.lang.Boolean",
"description": "enable nacos discovery or not.",
"defaultValue": true
},
{
"name": "spring.cloud.nacos.discovery.endpoint",
"type": "java.lang.String",
"description": "the domain name of a service, through which the server address can be dynamically obtained.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties"
},
{
"name": "spring.cloud.nacos.discovery.ephemeral",
"type": "java.lang.Boolean",
"description": "If instance is ephemeral.The default value is true.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"defaultValue": true
},
{
"name": "spring.cloud.nacos.discovery.group",
"type": "java.lang.String",
"description": "group name for nacos.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"defaultValue": "DEFAULT_GROUP"
},
{
"name": "spring.cloud.nacos.discovery.heart-beat-interval",
"type": "java.lang.Integer",
"description": "Heart beat interval. Time unit: millisecond.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties"
},
{
"name": "spring.cloud.nacos.discovery.heart-beat-timeout",
"type": "java.lang.Integer",
"description": "Heart beat timeout. Time unit: millisecond.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties"
},
{
"name": "spring.cloud.nacos.discovery.instance-enabled",
"type": "java.lang.Boolean",
"description": "If instance is enabled to accept request. The default value is true.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"defaultValue": true
},
{
"name": "spring.cloud.nacos.discovery.ip",
"type": "java.lang.String",
"description": "The ip address your want to register for your service instance, needn't to set it if the auto detect ip works well.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties"
},
{
"name": "spring.cloud.nacos.discovery.ip-delete-timeout",
"type": "java.lang.Integer",
"description": "Ip delete timeout. Time unit: millisecond.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties"
},
{
"name": "spring.cloud.nacos.discovery.log-name",
"type": "java.lang.String",
"description": "nacos naming log file name.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties"
},
{
"name": "spring.cloud.nacos.discovery.metadata",
"type": "java.util.Map<java.lang.String,java.lang.String>",
"description": "extra metadata to register.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties"
},
{
"name": "spring.cloud.nacos.discovery.nacos-properties",
"type": "java.util.Properties",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties"
},
{
"name": "spring.cloud.nacos.discovery.namespace",
"type": "java.lang.String",
"description": "namespace, separation registry of different environments.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties"
},
{
"name": "spring.cloud.nacos.discovery.naming-load-cache-at-start",
"type": "java.lang.String",
"description": "naming load from local cache at application start. true is load.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"defaultValue": "false"
},
{
"name": "spring.cloud.nacos.discovery.namingLoadCacheAtStart",
"type": "java.lang.Boolean",
"description": "naming load from local cache at application start .",
"defaultValue": "false"
},
{
"name": "spring.cloud.nacos.discovery.network-interface",
"type": "java.lang.String",
"description": "which network interface's ip you want to register.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"defaultValue": ""
},
{
"name": "spring.cloud.nacos.discovery.password",
"type": "java.lang.String",
"description": "nacos discovery service's password to authenticate.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"defaultValue": "${spring.cloud.nacos.password}"
},
{
"name": "spring.cloud.nacos.discovery.port",
"type": "java.lang.Integer",
"description": "The port your want to register for your service instance, needn't to set it if the auto detect port works well.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"defaultValue": -1
},
{
"name": "spring.cloud.nacos.discovery.register-enabled",
"type": "java.lang.Boolean",
"description": "if you just want to subscribe, but don't want to register your service, set it to false.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"defaultValue": true
},
{
"name": "spring.cloud.nacos.discovery.secret-key",
"type": "java.lang.String",
"description": "secret key for namespace.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties"
},
{
"name": "spring.cloud.nacos.discovery.secure",
"type": "java.lang.Boolean",
"description": "whether your service is a https service.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"defaultValue": false
},
{
"name": "spring.cloud.nacos.discovery.server-addr",
"type": "java.lang.String",
"description": "nacos discovery server address.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"defaultValue": "${spring.cloud.nacos.server-addr}"
},
{
"name": "spring.cloud.nacos.discovery.service",
"type": "java.lang.String",
"description": "the service name to register, default value is ${spring.application.name}.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"defaultValue": "${spring.application.name}"
},
{
"name": "spring.cloud.nacos.discovery.username",
"type": "java.lang.String",
"description": "nacos discovery service's username to authenticate.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"defaultValue": "${spring.cloud.nacos.username}"
},
{
"name": "spring.cloud.nacos.discovery.watch-delay",
"type": "java.lang.Long",
"description": "watch delay,duration to pull new service from nacos server.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"defaultValue": 30000
},
{
"name": "spring.cloud.nacos.discovery.watch.enabled",
"type": "java.lang.Boolean",
"description": "enable nacos discovery watch or not .",
"defaultValue": "true"
},
{
"name": "spring.cloud.nacos.discovery.weight",
"type": "java.lang.Float",
"description": "weight for service instance, the larger the value, the larger the weight.",
"sourceType": "com.alibaba.cloud.nacos.NacosDiscoveryProperties",
"defaultValue": 1
},
{
"name": "spring.cloud.nacos.password",
"type": "java.lang.String",
"description": "nacos password to authenticate."
},
{
"name": "spring.cloud.nacos.server-addr",
"type": "java.lang.String",
"description": "nacos server address.",
"defaultValue": "localhost:8848"
},
{
"name": "spring.cloud.nacos.username",
"type": "java.lang.String",
"description": "nacos userName to authenticate."
}
],
"hints": []
}
2. additional-spring-configuration-metadata.json
{"properties": [
{
"name": "spring.cloud.nacos.server-addr",
"type": "java.lang.String",
"defaultValue": "localhost:8848",
"description": "nacos server address."
},
{
"name": "spring.cloud.nacos.discovery.server-addr",
"type": "java.lang.String",
"defaultValue": "${spring.cloud.nacos.server-addr}",
"description": "nacos discovery server address."
},
{
"name": "spring.cloud.nacos.discovery.service",
"type": "java.lang.String",
"defaultValue": "${spring.application.name}",
"description": "the service name to register, default value is ${spring.application.name}."
},
{
"name": "spring.cloud.nacos.discovery.enabled",
"type": "java.lang.Boolean",
"defaultValue": true,
"description": "enable nacos discovery or not."
},
{
"name": "spring.cloud.nacos.discovery.instance-enabled",
"type": "java.lang.Boolean",
"defaultValue": true,
"description": "If instance is enabled to accept request. The default value is true."
},
{
"name": "spring.cloud.nacos.discovery.ephemeral",
"type": "java.lang.Boolean",
"defaultValue": true,
"description": "If instance is ephemeral.The default value is true."
},
{
"name": "spring.cloud.nacos.discovery.namingLoadCacheAtStart",
"type": "java.lang.Boolean",
"defaultValue": "false",
"description": "naming load from local cache at application start ."
},
{
"name": "spring.cloud.nacos.discovery.watch.enabled",
"type": "java.lang.Boolean",
"defaultValue": "true",
"description": "enable nacos discovery watch or not ."
},
{
"name": "spring.cloud.nacos.discovery.username",
"type": "java.lang.String",
"defaultValue": "${spring.cloud.nacos.username}",
"description": "nacos discovery service's username to authenticate."
},
{
"name": "spring.cloud.nacos.discovery.password",
"type": "java.lang.String",
"defaultValue": "${spring.cloud.nacos.password}",
"description": "nacos discovery service's password to authenticate."
},
{
"name": "spring.cloud.nacos.username",
"type": "java.lang.String",
"description": "nacos userName to authenticate."
},
{
"name": "spring.cloud.nacos.password",
"type": "java.lang.String",
"description": "nacos password to authenticate."
}
]}