A Spring self-check on profile selection, imported configuration and staged Flyway startup.
Review before answering
- Spring Boot profile files: bind only the selected environment override
- Spring Boot config import: fail startup when a required file is missing
- Spring Boot optional config import: know which default survives
- Spring Boot config source priority: a builder default may lose to a packaged file
- Spring Boot Flyway startup: apply versioned SQL before querying a receipt
- Spring Boot migration target: test an old writer before closing the schema
- Spring Boot migration history failure: stop context startup on a mismatch
Common Mistakes
- Do not read only the base file when a profile is active.
- Do not confuse an optional fallback with a loaded import.
- Do not present a test-scoped migration starter as runtime wiring.
