Hystrix 跳闸机制
// GET http://localhost:7200/actuator/health 查看健康状态
"hystrix": {
"status": "UP"
} //正常
"hystrix": {
"status": "CIRCUIT_OPEN",
"details": {
"openCircuitBreakers": [
"ActivityService::firstLoginCircuitBreaker"
]
}
} //跳闸; 跳闸的方法在数组“openCircuitBreakers”里