springboot nacos actuator health config be no longer in force;
management:
health:
defaults:
enabled: false
then i visit http://127.0.0.1:9600/actuator/health
it's go back nacosConfig yet
springboot nacos actuator health config be no longer in force;
management:
health:
defaults:
enabled: false
then i visit http://127.0.0.1:9600/actuator/health
it's go back nacosConfig yet
2条答案
按热度按时间kmb7vmvb1#
Configure the following properties
This problem is caused by the unreasonable setting of the upper abstraction (spring-cloud-commons)
add
@ConditionalOnEnabledHealthIndicator
https://github.com/spring-cloud/spring-cloud-commons/blob/master/spring-cloud-commons/src/main/java/org/springframework/cloud/client/CommonsClientAutoConfiguration.java#L61-L66
cyvaqqii2#
同时配置了
以及
仅仅返回如下内容:
@lltx