Grokking Java Interview Questions
0% completed
Spring Boot Auto Configuration
A store project adds two dependencies to its build file: the JDBC starter of Spring Boot and the H2 database. Nobody writes a DataSource bean. Why can a service class of this project still receive a DataSource through its constructor?
Spring Boot found the two libraries and declared the bean itself. The answers below show what Boot adds to Spring, how it decides which beans to create, how a project replaces them, and which of several configured values is used.
What does Spring Boot add to Spring?
Level: Junior
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%