@Retention(value=RUNTIME) @Target(value=TYPE) @Documented @Import(value=ApolloConfigRegistrar.class) public @interface EnableApolloConfig
Configuration example:
@Configuration
@EnableApolloConfig({"someNamespace","anotherNamespace"})
public class AppConfig {
}
public abstract String[] value
public abstract int order
Ordered.LOWEST_PRECEDENCE, which is Integer.MAX_VALUE.
If there are properties with the same name in different apollo configs, the apollo config with smaller order wins.Copyright © 2018 Ctrip, Inc.. All rights reserved.