Java · OOP, JVM and backend craft
What is Spring Boot and how does it simplify Spring applications?
Short answer
Spring Boot is an opinionated layer over Spring that provides auto-configuration, starters and an embedded server. It removes most boilerplate so a runnable service is a single artifact.
Spring Boot does not replace Spring; it configures it. Auto-configuration inspects the classpath and existing beans, then supplies sensible defaults. Starters bundle compatible dependencies, and the embedded server means the application runs from a main method without an external container.
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}The pieces that matter
- Starters such as spring-boot-starter-web and spring-boot-starter-data-jpa
- Embedded Tomcat, Jetty or Undertow, configured through properties
- Actuator endpoints for health, metrics and environment inspection
- Profiles for environment-specific configuration
- A fat jar that contains the application and its dependencies
Convention over configuration is the point, but defaults must be understood. Auto-configuration backs off when you define your own bean of the relevant type. You can exclude a configuration or override properties when the default does not fit.
Follow-ups you should expect
Interviewers use these to check whether the first answer was understanding or memorisation.
- 1What does @SpringBootApplication combine?
- 2How does auto-configuration decide what to create?
- 3How do you override a Spring Boot default?
- 4Why might a bean in a sibling package not be found?
Say it in the interview
Spring Boot is opinionated configuration on top of Spring. It looks at the classpath, applies auto-configuration, and backs off when I define my own beans. Starters pull in compatible dependencies, and the embedded server lets the app run from a main method. I still need to understand the defaults, especially component scanning and property precedence, so I can override them deliberately.
Use this as a model, not a script. Saying it in your own words is what makes it survive follow-up pressure.
Related questions
Reading is step one
Now say it out loud.
Understanding an answer and delivering it under pressure are different skills. Rehearse this topic in a live Java mock interview and get scored feedback on depth, clarity and confidence.