启动错误:org.springframework.boot.actuate.autoconfigure.health.HealthEndpointProperties
springboot启动错误
Paraneter 0 of method httpCodeStatusMapper in com.alipay.sofa.boot.actuator.autoconfigure. health. SofaBootHealthcheckAutoConfiguration$ReadinessCheckExtensionConfiguration required a bean of type ’ org.springframework.boot.actuate.autoconfigure.health.HealthEndpointProperties’ that could not be found.
Action:
Consider defining a bean of type ’ org.springframework.boot.actuate.autoconfigure.health.HealthEndpointProperties’ in your configuration.
解决方案
yml配置文件新增如下配置