@Retention(value=RUNTIME) @Target(value=FIELD) @Documented public @interface ApolloConfig
Usage example:
//Inject the config for "someNamespace"
@ApolloConfig("someNamespace")
private Config config;
Usage example with placeholder:
// The namespace could also be specified as a placeholder, e.g. ${redis.namespace:xxx},
// which will use the value of the key "redis.namespace" or "xxx" if this key is not configured.
@ApolloConfig("${redis.namespace:xxx}")
private Config config;
public abstract String value
Copyright © 2022 Ctrip, Inc.. All rights reserved.