Spring boot Flashcards
What does the Spring IoC (Inversion of Control) container do?
Manages the creation, configuration, and lifecycle of application beans.
In a Spring Boot project, which file is used to manage Maven dependencies?
pom.xml
Which Spring Boot starter would you use for building a web, RESTful application using Spring MVC?
spring-boot-starter-web
What is the role of the @SpringBootApplication annotation in a Spring Boot application?
It marks the main class of a Spring Boot application and triggers auto-configuration, component scanning, and configuration.
How can you define a Spring bean in a configuration class?
By annotating a method with @Bean
What logging framework does Spring Boot use by default when starters are included
Request
In a typical Spring Boot project structure, where should the controller classes be placed?
src/main/java/[package]/controller
What is a key characteristic of a Java Bean?
It must have a public no-argument constructor.