条件评估报告(条件)

条件端点提供关于配置类和自动配置类条件评估的信息。spring-doc.cadn.net.cn

取回报告

要获取报告,请获取请求/执行器/条件如以下基于卷度的示例所示:spring-doc.cadn.net.cn

$ curl 'http://localhost:8080/actuator/conditions' -i -X GET

最终的响应类似于以下内容:spring-doc.cadn.net.cn

HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 3082

{
  "contexts" : {
    "application" : {
      "negativeMatches" : {
        "GsonHttpMessageConvertersConfiguration" : {
          "notMatched" : [ {
            "condition" : "OnClassCondition",
            "message" : "@ConditionalOnClass did not find required class 'com.google.gson.Gson'"
          } ],
          "matched" : [ ]
        },
        "Jackson2HttpMessageConvertersConfiguration.MappingJackson2XmlHttpMessageConverterConfiguration" : {
          "notMatched" : [ {
            "condition" : "OnClassCondition",
            "message" : "@ConditionalOnClass did not find required class 'tools.jackson.dataformat.xml.XmlMapper'"
          } ],
          "matched" : [ ]
        },
        "Jackson2HttpMessageConvertersConfiguration.MappingJackson2HttpMessageConverterConfiguration" : {
          "notMatched" : [ {
            "condition" : "Jackson2HttpMessageConvertersConfiguration.PreferJackson2OrJacksonUnavailableCondition",
            "message" : "AnyNestedCondition 0 matched 2 did not; NestedCondition on Jackson2HttpMessageConvertersConfiguration.PreferJackson2OrJacksonUnavailableCondition.JacksonUnavailable @ConditionalOnMissingBean (types: org.springframework.http.converter.json.JacksonJsonHttpMessageConverter; SearchStrategy: all) found beans of type 'org.springframework.http.converter.json.JacksonJsonHttpMessageConverter' jacksonJsonHttpMessageConverter; NestedCondition on Jackson2HttpMessageConvertersConfiguration.PreferJackson2OrJacksonUnavailableCondition.Jackson2Preferred @ConditionalOnProperty (spring.http.converters.preferred-json-mapper=jackson2) did not find property 'spring.http.converters.preferred-json-mapper'"
          } ],
          "matched" : [ {
            "condition" : "OnClassCondition",
            "message" : "@ConditionalOnClass found required class 'com.fasterxml.jackson.databind.ObjectMapper'"
          } ]
        }
      },
      "positiveMatches" : {
        "EndpointAutoConfiguration#propertiesEndpointAccessResolver" : [ {
          "condition" : "OnBeanCondition",
          "message" : "@ConditionalOnMissingBean (types: org.springframework.boot.actuate.endpoint.EndpointAccessResolver; SearchStrategy: all) did not find any beans"
        } ],
        "EndpointAutoConfiguration#endpointOperationParameterMapper" : [ {
          "condition" : "OnBeanCondition",
          "message" : "@ConditionalOnMissingBean (types: org.springframework.boot.actuate.endpoint.invoke.ParameterValueMapper; SearchStrategy: all) did not find any beans"
        } ],
        "EndpointAutoConfiguration#endpointCachingOperationInvokerAdvisor" : [ {
          "condition" : "OnBeanCondition",
          "message" : "@ConditionalOnMissingBean (types: org.springframework.boot.actuate.endpoint.invoker.cache.CachingOperationInvokerAdvisor; SearchStrategy: all) did not find any beans"
        } ]
      },
      "unconditionalClasses" : [ "org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration", "org.springframework.boot.actuate.autoconfigure.endpoint.EndpointAutoConfiguration" ]
    }
  }
}

响应结构

回复包含申请条件评估的详细信息。 下表描述了该反应的结构:spring-doc.cadn.net.cn

路径 类型 描述

上下文spring-doc.cadn.net.cn

对象spring-doc.cadn.net.cn

应用程序上下文由ID键入。spring-doc.cadn.net.cn

contexts.*.positiveMatchsspring-doc.cadn.net.cn

对象spring-doc.cadn.net.cn

条件匹配的类和方法。spring-doc.cadn.net.cn

语境。*.正配对.*。[].状态spring-doc.cadn.net.cn

字符串spring-doc.cadn.net.cn

病症名称。spring-doc.cadn.net.cn

语境。*.正配对.*。[].信息spring-doc.cadn.net.cn

字符串spring-doc.cadn.net.cn

关于该病症匹配的原因。spring-doc.cadn.net.cn

contexts.*.negativeMatchsspring-doc.cadn.net.cn

对象spring-doc.cadn.net.cn

类和方法的条件未匹配。spring-doc.cadn.net.cn

contexts.*.negativeMatches.*.notMatchedspring-doc.cadn.net.cn

数组spring-doc.cadn.net.cn

条件相匹配。spring-doc.cadn.net.cn

contexts.*.negativeMatches.*.notMatched.[].状态spring-doc.cadn.net.cn

字符串spring-doc.cadn.net.cn

病症名称。spring-doc.cadn.net.cn

contexts.*.negativeMatches.*.notMatched.[].信息spring-doc.cadn.net.cn

字符串spring-doc.cadn.net.cn

说明为何条件未匹配。spring-doc.cadn.net.cn

contexts.*.negativeMatches.*.matchedspring-doc.cadn.net.cn

数组spring-doc.cadn.net.cn

条件相匹配。spring-doc.cadn.net.cn

上下文.*.负面匹配.*.匹配。[].状态spring-doc.cadn.net.cn

字符串spring-doc.cadn.net.cn

病症名称。spring-doc.cadn.net.cn

上下文.*.负面匹配.*.匹配。[].信息spring-doc.cadn.net.cn

字符串spring-doc.cadn.net.cn

关于该病症匹配的原因。spring-doc.cadn.net.cn

contexts.*.unconditionalClassesspring-doc.cadn.net.cn

数组spring-doc.cadn.net.cn

如果有的话,列出无条件自动配置类的名称。spring-doc.cadn.net.cn

contexts.*.parentId(上下文)。*.parentId(亲子身份)spring-doc.cadn.net.cn

字符串spring-doc.cadn.net.cn

如果有,请提供父应用上下文的ID。spring-doc.cadn.net.cn