在实际使用Apollo配置中心的项目中,可以通过修改日志级别让应用即时生效,免去了重启应用的昂贵操作。
package cn.com.example.commons.spring;
import com.ctrip.framework.apollo.Config;
import com.ctrip.framework.apollo.model.ConfigChangeEvent;
import com.ctrip.framework.apollo.spring.annotation.ApolloConfig;
import com.ctrip.framework.apollo.spring.annotation.ApolloConfigChangeListener;
import lombok.extern.slf4j.Slf4j;
import org.springframework

326

被折叠的 条评论
为什么被折叠?



