Files
spring-boot-demo/custom-starter/output/06-conditional-on-bean-needs-an-ordering.txt
Claude c418589251 Add custom-starter module: a Boot 4 auto-configuration starter with conditions, metadata and runner tests
Two-jar starter (autoconfigure + starter), a demo app, and 17 captured transcripts
covering AutoConfiguration.imports, @ConditionalOn*, ordering, optional Jackson 3
integration, configuration metadata and the Boot 4 module split.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Uu7q8vPeREyT4218EJPzz1
2026-09-24 06:53:07 +00:00

18 lines
872 B
Plaintext

# @ConditionalOnBean(JsonMapper) with and without an ordering constraint
--- the order Boot evaluates them in ---
com.ankurm.masker.MaskerAutoConfiguration
com.ankurm.traps.EarlyModuleAutoConfiguration
org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration
com.ankurm.traps.OrderedModuleAutoConfiguration
--- the beans each one produced ---
Marker bean created by OrderedModuleAutoConfiguration
--- what Boot recorded ---
com.ankurm.traps.EarlyModuleAutoConfiguration [not matched]
did not match: @ConditionalOnBean (types: tools.jackson.databind.json.JsonMapper; SearchStrategy: all) did not find any beans of type tools.jackson.databind.json.JsonMapper
com.ankurm.traps.OrderedModuleAutoConfiguration [matched]
matched: @ConditionalOnBean (types: tools.jackson.databind.json.JsonMapper; SearchStrategy: all) found bean 'jacksonJsonMapper'