Spring Boot learning path
Backend engineers preparing for Java and Spring Boot interviews, from first basics to senior-level internals
Your progress
L1 · 0 of 26L2 · 0 of 11L3 · 0 of 9
Next
Level 1 · 26 questions. Begin with what gets asked in the first ten minutes. Levels 2 to 4 build on it.
Level 1First ten minutesTwo-sentence answers to what gets asked first.
Core ideas
- 1.1What is Spring Boot, and how is it different from the Spring Framework?Review againNext2 min
- 1.2What are inversion of control and dependency injection?Review againNext1 min
- 1.3What is a Spring bean, and how do @Component, @Service, @Repository and @Bean differ?Review againNext2 min
- 1.4Constructor injection, setter injection or field injection: which do you use and why?Review againNext1 min
- 1.5What does @SpringBootApplication do?Review againNext1 min
- 1.6What are bean scopes, and what is the default?Review againNext1 min
- 1.7Why does Spring Boot prefer convention over configuration?Review againNext2 min
- 1.8Difference between @ComponentScan and @SpringBootApplication?Must‑knowReview againNext2 min
Web and REST
- 2.1How do you build a simple REST endpoint in Spring Boot?Review againNext2 min
- 2.2How do you return the right HTTP status code from a controller?Review againNext1 min
- 2.3How do you handle exceptions globally in a Spring Boot REST API?Review againNext2 min
- 2.4How do you validate request input in Spring Boot?Review againNext1 min
- 2.5Difference between @RestController and @Controller internally?Must‑knowReview againNext2 min
Configuration
- 3.1How do application.properties, @Value and @ConfigurationProperties work, and how do profiles fit in?Review againNext2 min
- 3.2What happens if application.yml and application.properties both exist?Review againNext2 min
- 3.3How does Spring Boot decide server port priority?Review againNext2 min
- 3.4How does Spring Boot manage dependency versions automatically?Review againNext2 min
Data access
- 4.1What is Spring Data JPA, and what does a repository interface give you?Review againNext2 min
- 4.2What does @Transactional do?Review againNext2 min
Running, testing and packaging
- 5.1What is Spring Boot Actuator used for?Review againNext1 min
- 5.2How do you test a Spring Boot application?Review againNext1 min
- 5.3What is the real use of CommandLineRunner?Review againNext2 min
- 5.4How does Spring Boot handle logging by default?Review againNext3 min
- 5.5Difference between a fat JAR and a normal JAR?Must‑knowReview againNext3 min
- 5.6Why is Spring Boot perfect for microservices?Review againNext2 min
- 5.7Why is Spring Boot preferred for cloud-native apps?Review againNext2 min
Level 2Daily jobWhat you use at work every week.
Auto-configuration
- 1.1What happens internally when you add spring-boot-starter-web?Must‑knowReview againNext3 min
- 1.2Difference between @EnableAutoConfiguration and @Import?Review againNext2 min
- 1.3What happens when you exclude an auto-configuration class?Review againNext2 min
- 1.4How did Spring Boot remove XML configuration almost completely?Review againNext2 min
The bean container
- 2.1What happens if two beans of the same type exist without @Qualifier?Must‑knowReview againNext2 min
- 2.2Difference between a @Configuration class and a normal class?Must‑knowReview againNext3 min
Configuration
- 3.1How does Spring Boot load profile-specific configurations?Must‑knowReview againNext4 min
- 3.2How does Spring Boot handle externalized configuration?Review againNext9 min
Web and data
- 4.1How does Spring Boot detect embedded Tomcat automatically?Review againNext3 min
- 4.2How does Spring Boot handle exception translation?Review againNext5 min
- 4.3How does Spring Boot auto-create a DataSource?Review againNext2 min
Level 3SeniorProduction trade-offs and failure modes.
Auto-configuration internals
- 1.1How does Spring Boot decide which auto-configuration to apply?Review againNext4 min
- 1.2What is the role of SpringFactoriesLoader?Review againNext3 min
Startup and bean lifecycle
- 2.1What is the exact startup flow of a Spring Boot application?Review againNext3 min
- 2.2What is the complete lifecycle of a Spring Bean?Review againNext2 min
- 2.3How does Spring Boot load application.properties internally?Review againNext3 min
Request flow and observability
- 3.1What happens internally when you hit a REST endpoint?Review againNext5 min
- 3.2How does Spring Boot integrate with Actuator internally?Review againNext3 min
Production and upgrades
- 4.1What are the most common Spring Boot performance mistakes?Review againNext4 min
- 4.2How would you upgrade a service to Spring Boot 4, and where does AI help?Review againNext6 min
Each card is a topic. Columns go from Level 1 to Level 4; the outlined card is where you are.