The full picture
- Property: check configprops/actuator + reference docs before writing code — 'there's a property for that' is true shockingly often.
- Own bean: e.g., define
ObjectMapperand Boot's Jackson config steps aside — but preferJackson2ObjectMapperBuilderCustomizer(next rung) to keep Boot's sensible defaults and change only what you need. - Customizers: the intended extension seam — additive, composable, upgrade-friendly.
- Exclude:
exclude = SecurityAutoConfiguration.class(orspring.autoconfigure.exclude) when replacing a subsystem wholesale. - Verify: re-run with
--debug— confirm the condition report now shows the auto-config unmatched for the reason you intended (your bean present), not accidentally (missing class).