Package com.alibaba.nacos.api.annotation
Annotation Type NacosProperties
-
@Target(ANNOTATION_TYPE) @Retention(RUNTIME) @Documented public @interface NacosProperties
An annotation for Nacos Properties- Since:
- 0.2.1
- Author:
- Mercy
- See Also:
PropertyKeyConst
-
-
Field Summary
Fields Modifier and Type Fields Description static StringACCESS_KEYThe property name of "access-key"static StringACCESS_KEY_PLACEHOLDERThe placeholder of endpoint, the value is"${nacos.access-key:}"static StringCLUSTER_NAMEThe property name of "cluster-name"static StringCLUSTER_NAME_PLACEHOLDERThe placeholder of endpoint, the value is"${nacos.cluster-name:}"static StringCONTEXT_PATHThe property name of "context-path"static StringCONTEXT_PATH_PLACEHOLDERThe placeholder of endpoint, the value is ${nacos.context-path:}"static StringENCODEThe property name of "encode"static StringENCODE_PLACEHOLDERThe placeholder ofencode, the value is"${nacos.encode:UTF-8}"static StringENDPOINTThe property name of "endpoint"static StringENDPOINT_PLACEHOLDERThe placeholder of endpoint, the value is"${nacos.endpoint:}"static StringNAMESPACEThe property name of "namespace"static StringNAMESPACE_PLACEHOLDERThe placeholder of endpoint, the value is"${nacos.namespace:}"static StringPREFIXThe prefix of property name of Nacosstatic StringSECRET_KEYThe property name of "secret-key"static StringSECRET_KEY_PLACEHOLDERThe placeholder of endpoint, the value is"${nacos.secret-key:}"static StringSERVER_ADDRThe property name of "server-addr"static StringSERVER_ADDR_PLACEHOLDERThe placeholder of endpoint, the value is${nacos.server-addr:}"
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringaccessKeyThe property of "access-key"StringclusterNameThe property of "cluster-name"StringcontextPathThe property of "context-path"StringencodeThe property of "encode"StringendpointThe property of "endpoint"StringnamespaceThe property of "namespace"StringsecretKeyThe property of "secret-key"StringserverAddrThe property of "server-addr"
-
-
-
Field Detail
-
PREFIX
static final String PREFIX
The prefix of property name of Nacos
-
-
-
ENDPOINT
static final String ENDPOINT
The property name of "endpoint"
-
-
-
NAMESPACE
static final String NAMESPACE
The property name of "namespace"
-
-
-
ACCESS_KEY
static final String ACCESS_KEY
The property name of "access-key"
-
-
-
SECRET_KEY
static final String SECRET_KEY
The property name of "secret-key"
-
-
-
SERVER_ADDR
static final String SERVER_ADDR
The property name of "server-addr"
-
-
-
CONTEXT_PATH
static final String CONTEXT_PATH
The property name of "context-path"
-
-
-
CLUSTER_NAME
static final String CLUSTER_NAME
The property name of "cluster-name"
-
-
-
ENCODE
static final String ENCODE
The property name of "encode"
-
-
-
ENDPOINT_PLACEHOLDER
static final String ENDPOINT_PLACEHOLDER
The placeholder of endpoint, the value is"${nacos.endpoint:}"
-
-
-
NAMESPACE_PLACEHOLDER
static final String NAMESPACE_PLACEHOLDER
The placeholder of endpoint, the value is"${nacos.namespace:}"
-
-
-
ACCESS_KEY_PLACEHOLDER
static final String ACCESS_KEY_PLACEHOLDER
The placeholder of endpoint, the value is"${nacos.access-key:}"
-
-
-
SECRET_KEY_PLACEHOLDER
static final String SECRET_KEY_PLACEHOLDER
The placeholder of endpoint, the value is"${nacos.secret-key:}"
-
-
-
SERVER_ADDR_PLACEHOLDER
static final String SERVER_ADDR_PLACEHOLDER
The placeholder of endpoint, the value is${nacos.server-addr:}"
-
-
-
CONTEXT_PATH_PLACEHOLDER
static final String CONTEXT_PATH_PLACEHOLDER
The placeholder of endpoint, the value is ${nacos.context-path:}"
-
-
-
CLUSTER_NAME_PLACEHOLDER
static final String CLUSTER_NAME_PLACEHOLDER
The placeholder of endpoint, the value is"${nacos.cluster-name:}"
-
-
Element Detail
-
endpoint
String endpoint
The property of "endpoint"- Returns:
- empty as default value
- See Also:
ENDPOINT_PLACEHOLDER
- Default:
- "${nacos.endpoint:}"
-
-
-
namespace
String namespace
The property of "namespace"- Returns:
- empty as default value
- See Also:
NAMESPACE_PLACEHOLDER
- Default:
- "${nacos.namespace:}"
-
-
-
accessKey
String accessKey
The property of "access-key"- Returns:
- empty as default value
- See Also:
ACCESS_KEY_PLACEHOLDER
- Default:
- "${nacos.access-key:}"
-
-
-
secretKey
String secretKey
The property of "secret-key"- Returns:
- empty as default value
- See Also:
SECRET_KEY_PLACEHOLDER
- Default:
- "${nacos.secret-key:}"
-
-
-
serverAddr
String serverAddr
The property of "server-addr"- Returns:
- empty as default value
- See Also:
SERVER_ADDR_PLACEHOLDER
- Default:
- "${nacos.server-addr:}"
-
-
-
contextPath
String contextPath
The property of "context-path"- Returns:
- empty as default value
- See Also:
CONTEXT_PATH_PLACEHOLDER
- Default:
- "${nacos.context-path:}"
-
-
-
clusterName
String clusterName
The property of "cluster-name"- Returns:
- empty as default value
- See Also:
CLUSTER_NAME_PLACEHOLDER
- Default:
- "${nacos.cluster-name:}"
-
-
-
encode
String encode
The property of "encode"- Returns:
- "UTF-8" as default value
- See Also:
ENCODE_PLACEHOLDER
- Default:
- "${nacos.encode:UTF-8}"
-
-