@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Import(value=EzSentinelConfiguration.class) public @interface EnableEzSentinel
用于Spring容器中修改EzSentinel配置. 说明文档见: https://github.com/shepherdviolet/slate/blob/master/docs/ezsentinel/guide.md
依赖: compile "com.google.code.gson:gson:$version_gson"
1.添加gson依赖: compile "com.google.code.gson:gson:$version_gson"
2.添加本注解来启用: EnableEzSentinel
3.增加参数: slate.common.ez-sentinel.rule-data, 设置限流熔断规则.