Files
spring-boot-demo/custom-starter/output/03-conditional-on-missing-bean-and-registration-order.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

14 lines
515 B
Plaintext

# @ConditionalOnMissingBean: backing off, and the order that decides it
--- user configuration + auto-configuration (the way Boot loads them) ---
Masker beans : [customMasker]
getBean(Masker.class) : mask -> <redacted>
--- the same two classes registered as ordinary configuration, starter first ---
Masker beans : [masker, customMasker]
getBean(Masker.class) : NoUniqueBeanDefinitionException
--- the same two classes, user configuration first ---
Masker beans : [customMasker]