配置
management:
health:
mail:
enabled: false
即可
https://docs.spring.io/spring-boot/docs/2.5.6/reference/html/actuator.html#actuator.endpoints.health
在SpringBoot应用中,通过设置`management.health.mail.enabled:false`可以禁用健康检查中的邮件端点。这将防止Actuator在执行健康检查时尝试发送邮件,从而优化性能或避免不必要的邮件服务交互。
配置
management:
health:
mail:
enabled: false
即可
https://docs.spring.io/spring-boot/docs/2.5.6/reference/html/actuator.html#actuator.endpoints.health
1929
9895
2698
4124
1316
6395
1049

被折叠的 条评论
为什么被折叠?
