Auto-configuration

Auto-configuration is one of the most important features of Spring Boot. The auto-configuration endpoint (/application/autoconfig) exposes the details related to auto-configuration. It shows both positive matches and negative matches with details about why a particular auto-configuration succeeded or failed.

The following extract shows some of the positive matches from the response:

"positiveMatches": {  "AuditAutoConfiguration#auditListener": [   {     "condition": "OnBeanCondition",     "message": "@ConditionalOnMissingBean (types:           org.springframework.boot.actuate.audit.      listener.AbstractAuditListener; SearchStrategy: all) did not find       any beans"   } ], "AuditAutoConfiguration#authenticationAuditListener": [ { "condition": "OnClassCondition", ...

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.