Package com.ctrip.framework.apollo.spring Description
This package contains Apollo Spring integration codes and enables the following features:
1. Support Spring XML based configuration
- <apollo:config namespaces="someNamespace"/> to inject configurations from Apollo into Spring Property
Sources so that placeholders like ${someProperty} and @Value("someProperty") are supported.
2. Support Spring Java based configuration
- @EnableApolloConfig(namespaces={"someNamespace"}) to inject configurations from Apollo into Spring Property
Sources so that placeholders like ${someProperty} and @Value("someProperty") are supported.
With the above configuration, annotations like @ApolloConfig("someNamespace")
and @ApolloConfigChangeListener("someNamespace) are also supported.
Requires Spring 3.1.1+