注释类型 NacosProperties
-
@Target(ANNOTATION_TYPE) @Retention(RUNTIME) @Documented public @interface NacosPropertiesAn annotation for Nacos Properties.- 从以下版本开始:
- 0.2.1
- 作者:
- Mercy
- 另请参阅:
PropertyKeyConst
-
-
字段概要
字段 修饰符和类型 字段 说明 static java.lang.StringACCESS_KEYThe property name of "access-key".static java.lang.StringACCESS_KEY_PLACEHOLDERThe placeholder of endpoint, the value is"${nacos.access-key:}".static java.lang.StringCLUSTER_NAMEThe property name of "cluster-name".static java.lang.StringCLUSTER_NAME_PLACEHOLDERThe placeholder of endpoint, the value is"${nacos.cluster-name:}".static java.lang.StringCONFIG_LONG_POLL_TIMEOUTThe property name of "long-poll.timeout".static java.lang.StringCONFIG_LONG_POLL_TIMEOUT_PLACEHOLDERThe placeholder ofconfigLongPollTimeout, the value is"${nacos.configLongPollTimeout:}".static java.lang.StringCONFIG_RETRY_TIMEThe property name of "config.retry.time".static java.lang.StringCONFIG_RETRY_TIME_PLACEHOLDERThe placeholder ofconfigRetryTime, the value is"${nacos.configRetryTime:}".static java.lang.StringCONTEXT_PATHThe property name of "context-path".static java.lang.StringCONTEXT_PATH_PLACEHOLDERThe placeholder of endpoint, the value is ${nacos.context-path:}".static java.lang.StringENABLE_REMOTE_SYNC_CONFIGThe property name of "enableRemoteSyncConfig".static java.lang.StringENABLE_REMOTE_SYNC_CONFIG_PLACEHOLDERThe placeholder ofenableRemoteSyncConfig, the value is"${nacos.enableRemoteSyncConfig:}".static java.lang.StringENCODEThe property name of "encode".static java.lang.StringENCODE_PLACEHOLDERThe placeholder ofencode, the value is"${nacos.encode:UTF-8}".static java.lang.StringENDPOINTThe property name of "endpoint".static java.lang.StringENDPOINT_PLACEHOLDERThe placeholder of endpoint, the value is"${nacos.endpoint:}".static java.lang.StringMAX_RETRYThe property name of "maxRetry".static java.lang.StringMAX_RETRY_PLACEHOLDERThe placeholder ofmaxRetry, the value is"${nacos.maxRetry:}".static java.lang.StringNAMESPACEThe property name of "namespace".static java.lang.StringNAMESPACE_PLACEHOLDERThe placeholder of endpoint, the value is"${nacos.namespace:}".static java.lang.StringPASSWORDThe property name of "password".static java.lang.StringPASSWORD_PLACEHOLDERThe placeholder of endpoint, the value is"${nacos.password:}".static java.lang.StringPREFIXThe prefix of property name of Nacos.static java.lang.StringSECRET_KEYThe property name of "secret-key".static java.lang.StringSECRET_KEY_PLACEHOLDERThe placeholder of endpoint, the value is"${nacos.secret-key:}".static java.lang.StringSERVER_ADDRThe property name of "server-addr".static java.lang.StringSERVER_ADDR_PLACEHOLDERThe placeholder of endpoint, the value is${nacos.server-addr:}".static java.lang.StringUSERNAMEThe property name of "username".static java.lang.StringUSERNAME_PLACEHOLDERThe placeholder of endpoint, the value is"${nacos.username:}".
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 java.lang.StringaccessKeyThe property of "access-key".java.lang.StringclusterNameThe property of "cluster-name".java.lang.StringconfigLongPollTimeoutThe property of "configLongPollTimeout".java.lang.StringconfigRetryTimeThe property of "configRetryTime".java.lang.StringcontextPathThe property of "context-path".java.lang.StringenableRemoteSyncConfigThe property of "enableRemoteSyncConfig".java.lang.StringencodeThe property of "encode".java.lang.StringendpointThe property of "endpoint".java.lang.StringmaxRetryThe property of "maxRetry".java.lang.StringnamespaceThe property of "namespace".java.lang.StringpasswordThe property of "password".java.lang.StringsecretKeyThe property of "secret-key".java.lang.StringserverAddrThe property of "server-addr".java.lang.StringusernameThe property of "username".
-
-
-
-
ENCODE_PLACEHOLDER
static final java.lang.String ENCODE_PLACEHOLDER
The placeholder ofencode, the value is"${nacos.encode:UTF-8}".
-
-
-
CONFIG_LONG_POLL_TIMEOUT_PLACEHOLDER
static final java.lang.String CONFIG_LONG_POLL_TIMEOUT_PLACEHOLDER
The placeholder ofconfigLongPollTimeout, the value is"${nacos.configLongPollTimeout:}".
-
-
-
CONFIG_RETRY_TIME_PLACEHOLDER
static final java.lang.String CONFIG_RETRY_TIME_PLACEHOLDER
The placeholder ofconfigRetryTime, the value is"${nacos.configRetryTime:}".
-
-
-
MAX_RETRY_PLACEHOLDER
static final java.lang.String MAX_RETRY_PLACEHOLDER
The placeholder ofmaxRetry, the value is"${nacos.maxRetry:}".
-
-
-
ENABLE_REMOTE_SYNC_CONFIG_PLACEHOLDER
static final java.lang.String ENABLE_REMOTE_SYNC_CONFIG_PLACEHOLDER
The placeholder ofenableRemoteSyncConfig, the value is"${nacos.enableRemoteSyncConfig:}".
-
-
元素详细资料
-
endpoint
java.lang.String endpoint
The property of "endpoint".- 返回:
- empty as default value
- 另请参阅:
ENDPOINT_PLACEHOLDER
- 默认值:
- "${nacos.endpoint:}"
-
-
-
namespace
java.lang.String namespace
The property of "namespace".- 返回:
- empty as default value
- 另请参阅:
NAMESPACE_PLACEHOLDER
- 默认值:
- "${nacos.namespace:}"
-
-
-
accessKey
java.lang.String accessKey
The property of "access-key".- 返回:
- empty as default value
- 另请参阅:
ACCESS_KEY_PLACEHOLDER
- 默认值:
- "${nacos.access-key:}"
-
-
-
secretKey
java.lang.String secretKey
The property of "secret-key".- 返回:
- empty as default value
- 另请参阅:
SECRET_KEY_PLACEHOLDER
- 默认值:
- "${nacos.secret-key:}"
-
-
-
serverAddr
java.lang.String serverAddr
The property of "server-addr".- 返回:
- empty as default value
- 另请参阅:
SERVER_ADDR_PLACEHOLDER
- 默认值:
- "${nacos.server-addr:}"
-
-
-
contextPath
java.lang.String contextPath
The property of "context-path".- 返回:
- empty as default value
- 另请参阅:
CONTEXT_PATH_PLACEHOLDER
- 默认值:
- "${nacos.context-path:}"
-
-
-
clusterName
java.lang.String clusterName
The property of "cluster-name".- 返回:
- empty as default value
- 另请参阅:
CLUSTER_NAME_PLACEHOLDER
- 默认值:
- "${nacos.cluster-name:}"
-
-
-
encode
java.lang.String encode
The property of "encode".- 返回:
- "UTF-8" as default value
- 另请参阅:
ENCODE_PLACEHOLDER
- 默认值:
- "${nacos.encode:UTF-8}"
-
-
-
configLongPollTimeout
java.lang.String configLongPollTimeout
The property of "configLongPollTimeout".- 返回:
- empty as default value
- 另请参阅:
CONFIG_LONG_POLL_TIMEOUT_PLACEHOLDER
- 默认值:
- "${nacos.configLongPollTimeout:}"
-
-
-
configRetryTime
java.lang.String configRetryTime
The property of "configRetryTime".- 返回:
- empty as default value
- 另请参阅:
CONFIG_RETRY_TIME_PLACEHOLDER
- 默认值:
- "${nacos.configRetryTime:}"
-
-
-
maxRetry
java.lang.String maxRetry
The property of "maxRetry".- 返回:
- empty as default value
- 另请参阅:
MAX_RETRY
- 默认值:
- "${nacos.maxRetry:}"
-
-
-
enableRemoteSyncConfig
java.lang.String enableRemoteSyncConfig
The property of "enableRemoteSyncConfig".- 返回:
- empty as default value
- 另请参阅:
ENABLE_REMOTE_SYNC_CONFIG
- 默认值:
- "${nacos.enableRemoteSyncConfig:}"
-
-
-
username
java.lang.String username
The property of "username".- 返回:
- empty as default value
- 另请参阅:
USERNAME_PLACEHOLDER
- 默认值:
- "${nacos.username:}"
-
-
-
password
java.lang.String password
The property of "password".- 返回:
- empty as default value
- 另请参阅:
PASSWORD_PLACEHOLDER
- 默认值:
- "${nacos.password:}"
-
-