Spring Boot Interview Questions
Spring Boot interview questions on auto-configuration, dependency injection, Spring MVC, Spring Data JPA, security, testing and observability — the dominant framework for Java backend and microservice interviews.
Topics
- CoreHow Spring Boot bootstraps an application — auto-configuration, externalized properties and profiles, and the application lifecycle from startup to shutdown. 3 subtopics
- Dependency InjectionThe Spring IoC container, stereotype annotations, qualifiers and bean configuration — the wiring that holds every Spring application together. 4 subtopics
- Web MVCBuilding REST APIs with Spring MVC — controllers, request/response handling, exception handling and validation/serialization with Jackson. 4 subtopics
- Data AccessPersistence with Spring Data JPA — entity mapping, relationships and fetch strategies, repository abstractions and declarative transactions. 4 subtopics
- SecuritySecuring Spring Boot apps with Spring Security — the filter chain, authentication, authorization, and stateless JWT/OAuth2 flows. 4 subtopics
- TestingTesting Spring Boot applications — fast unit tests, sliced tests for the web and persistence layers, and full integration tests with Testcontainers. 3 subtopics
- Actuator & ObservabilityProduction-readiness with Spring Boot Actuator — health and metrics endpoints, custom health indicators and Micrometer metrics, and structured logging. 3 subtopics
- Async & MessagingDoing work off the request thread — @Async and scheduled tasks, the application event system, and messaging basics with JMS/Kafka/RabbitMQ. 3 subtopics