我有reslient4j配置,也有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=*