Commit e2c48073 by zhiheng.zhang

添加熔断器

parent aa5a1186
...@@ -19,4 +19,5 @@ management.endpoints.web.exposure.include=prometheus,info,health,shutdown ...@@ -19,4 +19,5 @@ management.endpoints.web.exposure.include=prometheus,info,health,shutdown
management.metrics.tags.application=${spring.application.name} management.metrics.tags.application=${spring.application.name}
management.endpoint.shutdown.enabled=true management.endpoint.shutdown.enabled=true
management.health.rabbit.enabled=false management.health.rabbit.enabled=false
apollo.plugin.namespace=openstore.gray.rule apollo.plugin.namespace=openstore.gray.rule
\ No newline at end of file feign.hystrix.enabled=true
\ No newline at end of file
...@@ -5,7 +5,7 @@ import cn.freemud.entities.dto.CouponCodeVerificationDto; ...@@ -5,7 +5,7 @@ import cn.freemud.entities.dto.CouponCodeVerificationDto;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@FeignClient(name = "COUPON",url="${saas.couponofflineclient.feign.url}") @FeignClient(name = "COUPON",url="http://coupon-offline-coupon-service-koderover-test-coupon.api-ingress.sandload.cn")
public interface CouponOfflineClient { public interface CouponOfflineClient {
@PostMapping("/api") @PostMapping("/api")
......
...@@ -23,6 +23,6 @@ management.metrics.tags.application=${spring.application.name} ...@@ -23,6 +23,6 @@ management.metrics.tags.application=${spring.application.name}
management.endpoint.shutdown.enabled=true management.endpoint.shutdown.enabled=true
management.security.enabled=false management.security.enabled=false
management.health.rabbit.enabled=false management.health.rabbit.enabled=false
feign.hystrix.enabled=true
mcCafe.partnerId=1206 mcCafe.partnerId=1206
apollo.plugin.namespace=openstore.gray.rule apollo.plugin.namespace=openstore.gray.rule
\ No newline at end of file
...@@ -23,4 +23,5 @@ management.metrics.tags.application=${spring.application.name} ...@@ -23,4 +23,5 @@ management.metrics.tags.application=${spring.application.name}
management.endpoint.shutdown.enabled=true management.endpoint.shutdown.enabled=true
management.security.enabled=false management.security.enabled=false
management.health.rabbit.enabled=false management.health.rabbit.enabled=false
apollo.plugin.namespace=openstore.gray.rule apollo.plugin.namespace=openstore.gray.rule
\ No newline at end of file feign.hystrix.enabled=true
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment