某些平台配置运行状况检查或类似内容,并指向或其他执行器端点。如果执行器不是配置服务器的依赖项,则对 API /{application}/{label} 的请求将与配置服务器 API /{application}/{label} 匹配,从而可能泄露安全信息。请记住在这种情况下添加spring-boot-starter-actuator依赖项,并配置用户,以便调用/actuator/的用户无权访问位于 的配置服务器 API。/actuator/health/actuator//{application}/{label}
某些平台配置运行状况检查或类似内容,并指向或其他执行器端点。如果执行器不是配置服务器的依赖项,则对 API /{application}/{label} 的请求将与配置服务器 API /{application}/{label} 匹配,从而可能泄露安全信息。请记住在这种情况下添加spring-boot-starter-actuator依赖项,并配置用户,以便调用/actuator/的用户无权访问位于 的配置服务器 API。/actuator/health/actuator//{application}/{label}