Level 1 · Apprentice0 XP
Why adding one dependency gives you a working database connection, and how to see and override it.
Step 1 / 5
ProblemYou add a starter and a URL, and a connection pool, a transaction manager and a JSON mapper appear. It feels like magic until something does not start, and then nobody on the team can say where a bean came from.
← → step
Before this: Injection, layers and transactions
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Start a Spring Boot application with --debug and find, in the conditions report, why DataSourceAutoConfiguration matched or did not. Then define your own bean of a type Boot auto-configures (for example ObjectMapper or a Clock) and confirm Boot's version backs off.