The /conditions endpoint is a Spring Boot Actuator diagnostic endpoint. It returns JSON showing which conditional autoconfiguration decisions matched, which did not, and which classes were unconditional. section 15.2.2
Reading a condition result
A positive match can show that MongoDataAutoConfiguration created a mongoTemplate because no matching MongoTemplate bean was found. A negative match can show that DispatcherServletAutoConfiguration did not apply because the required DispatcherServlet class was missing. section 15.2.2
{
"contexts": {
"application-1": {
"positiveMatches": {
...
"MongoDataAutoConfiguration#mongoTemplate": [
{
"condition": "OnBeanCondition",
"message": "@ConditionalOnMissingBean (types:
org.springframework.data.mongodb.core.MongoTemplate;
SearchStrategy: all) did not find any beans"
}
],
...
},
"negativeMatches": {
...
"DispatcherServletAutoConfiguration": {
"notMatched": [
{
"condition": "OnClassCondition",
"message": "@ConditionalOnClass did not find required
class 'org.springframework.web.servlet.
DispatcherServlet'"
}
],
"matched": []
},
...
},
"unconditionalClasses": [
...
"org.springframework.boot.autoconfigure.context.
ConfigurationPropertiesAutoConfiguration",
...
]
}
}
}
Browse the endpoint response to compare positiveMatches, negativeMatches, and unconditionalClasses, then inspect each condition and its explanatory message. section 15.2.2
