Topic Page

Spring Boot interview questions and answers.

This topic page groups Spring Boot interview questions that show up often in backend interviews: dependency injection, bean lifecycle, proxies, AOP, transactional boundaries, configuration, and runtime behavior. It works best as a guided starting point before opening the full answer section on the site.

What this Spring Boot section includes

The Spring material in this repository focuses on the questions that reveal whether a candidate understands how the framework really works, not just how to copy annotations from examples. Interviewers often test constructor injection, bean creation, autoconfiguration, proxies, scopes, and transactional behavior because those topics separate surface familiarity from production understanding.

That means a strong Spring Boot preparation flow should not stop at definitions. You should be able to explain what happens during container startup, why self-invocation breaks some proxy-based features, when to use qualifiers, and how profiles or configuration classes change runtime behavior.

Representative Spring Boot interview questions

  1. What is dependency injection and why is it useful?
  2. What is a Bean in Spring and how is it created?
  3. What stages exist in the Bean lifecycle?
  4. What is the difference between constructor, setter, and field injection?
  5. What does @Autowired do and how should it be used?
  6. What does @Transactional do?
  7. Why can @Transactional fail during self-invocation?
  8. What is a proxy in Spring and when does Spring create one?
  9. How does @SpringBootApplication work?
  10. What are Spring profiles and when should you use them?

Related pages