我有 resilience4j 配置,也有 managementconfig。
management.endpoint.circuitbreakerevents.enabled=true
但是我看不到任何事件,因为找不到 URL。 http://localhost:8080/circuitbreakerevents
{"timestamp":"2022-09-07T13:23:29.661+00:00","status":404,"error":"Not Found","path":"/circuitbreakerevents"}
http://localhost:8080/health 正在运行,我可以看到断路器已启动
正如您在文档中看到的那样,访问CircuitBreaker事件的路径是
/actuator/circuitbreakers
还要确保通过添加此属性公开端点:
management.endpoints.web.exposure.include=*