Spring Boot Features — Spring Technical Interview Questions & Answers

Auto-configuration, starters, actuator and embedded servers.

Spring Boot Features

  • Spring Boot’s main features are what interviewers usually ask first.
  • Auto-configuration: Creates beans based on classpath and conditions.
  • Starter dependencies: Curated sets like web, data-jpa, security, test.
  • Embedded servers: App ships with Tomcat/Jetty/Undertow.
  • Actuator: Health and metrics endpoints for monitoring.
  • External config: application.properties / application.yml for settings.
  • DevTools: Faster reload while coding (dev only).
  • Listing features without explaining one in plain words.
  • Pick 4 features and explain each in one short sentence.

Technical Interview Tip: Name 4 features with one plain sentence each.

Code Examples for Spring Boot Features

Spring Boot Features — working example

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication // config + auto-config + component scan
public class DemoApplication {
  public static void main(String[] args) {
    SpringApplication.run(DemoApplication.class, args);
  }
}

@RestController
class HelloController {
  @GetMapping("/api/hello")
  String hello() {
    return "Hello Spring Boot";
  }
}

Spring Boot Features — spring Boot is opinionated Spring: starters + auto-configuration + embedded server for fast apps.

How to Explain Spring Boot Features to an Interviewer

What is Boot Features (sb)?

Used for a short Boot Features sb example a small REST app Not just the heading

Give one small example of Boot Features (sb).

the smallest Boot Features sb example you can type Auto-configuration, starters, actuator and embedded servers

What mistake do beginners make with Boot Features (sb)?

only saying “Boot Features sb” with no example Show the fix

Where do you use Boot Features (sb)?

a small REST app a short Boot Features sb example