Spring Boot
Spring Boot
An auto-configuring Java web application framework based on the Spring framework. Fast development through the Convention over Configuration philosophy. The standard for building microservices and REST APIs.
Spring Boot
An auto-configuring Java web application framework based on the Spring framework. Fast development through the Convention over Configuration philosophy. The standard for building microservices and REST APIs.
Spring Boot is an auto-configuration Java web application framework based on the Spring Framework. It automates the complex XML configuration and dependency management of traditional Spring, allowing developers to focus on business logic. It follows the "Convention over Configuration" philosophy.
It was first released in 2014 by Pivotal (now VMware), and as of 2026, Spring Boot 3.3.x is the latest stable version. Based on Java 17+, it supports the latest Java ecosystem, including Jakarta EE 10, GraalVM Native Image, and Virtual Threads (Project Loom). In Korea, more than 80% of large enterprises' backend systems use Spring Boot.
Its core features include Auto-Configuration (dependency-based automatic configuration), Embedded Server (built-in Tomcat, Jetty, Undertow), Spring Boot Starter (dependency group packages), Actuator (operational monitoring), and DevTools (hot reload). Configuration is externalized with application.yml/properties, and environment-specific settings are separated using profiles.
In practice, Spring Boot is the core of microservices architecture. Combined with Spring Cloud, it is used to build service discovery (Eureka), API Gateway (Spring Cloud Gateway), distributed tracing (Zipkin/Sleuth), and a configuration server (Config Server). It is the standard for developing REST API, GraphQL, and gRPC endpoints and for implementing JPA/MyBatis-based data access layers.
// REST API 컨트롤러 예제 - Spring Boot 3.3
@RestController
@RequestMapping("/api/users")
@RequiredArgsConstructor // Lombok: 생성자 주입
public class UserController {
private final UserService userService;
// GET /api/users
@GetMapping
public List<UserDto> getAllUsers() {
return userService.findAll();
}
// GET /api/users/{id}
@GetMapping("/{id}")
public ResponseEntity<UserDto> getUserById(
@PathVariable Long id) {
return userService.findById(id)
.map(ResponseEntity::ok)
.orElse(ResponseEntity.notFound().build());
}
// POST /api/users
@PostMapping
@ResponseStatus(HttpStatus.CREATED)
public UserDto createUser(
@Valid @RequestBody CreateUserRequest request) {
return userService.create(request);
}
// DELETE /api/users/{id}
@DeleteMapping("/{id}")
@ResponseStatus(HttpStatus.NO_CONTENT)
public void deleteUser(@PathVariable Long id) {
userService.delete(id);
}
}
# Spring Boot 설정 파일
spring:
datasource:
url: jdbc:postgresql://localhost:5432/mydb
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
jpa:
hibernate:
ddl-auto: validate
show-sql: false
server:
port: 8080
# Actuator (운영 모니터링)
management:
endpoints:
web:
exposure:
include: health,metrics,prometheus
"We will go with Spring Boot for the new project backend. Node.js is good for rapid prototyping, but most of our team has extensive Java experience, and we need enterprise-level transaction management and security features. Considering the maturity of Spring Security and JPA, maintenance will be easier in the long run."
"The default scope of a Spring Bean is Singleton, meaning only one instance exists within the application context. The Prototype scope creates a new instance for each request, and the Request/Session scopes manage beans per HTTP request or session in a web environment. In practice, beans that hold state are set to the Prototype or Request scope to ensure thread safety."
"Please change @Autowired field injection to constructor injection. Constructor injection guarantees immutability, and circular references can be caught at compile time. Using Lombok's @RequiredArgsConstructor can also reduce boilerplate."
Take a mock interview on this topic → WIA SOOM AI Interview · Start for free
Relying on Spring Boot's "magic" makes debugging difficult. Understand auto-configuration conditions such as @ConditionalOnClass and @ConditionalOnProperty, and learn how to exclude specific configurations with spring.boot.autoconfigure.exclude when problems occur. You can check the auto-configuration report with the --debug flag.
Spring Boot applications take time to load initially. If you need fast scaling in a container environment, consider GraalVM Native Image (Spring Native). Set the JVM heap size (-Xmx) appropriately and remove unnecessary Starter dependencies.
Arbitrarily overriding versions managed by Spring Boot Starter Parent causes compatibility problems. When version conflicts occur, check the spring-boot-dependencies BOM and keep versions consistent with dependencyManagement. Update dependencies regularly with Dependabot or Renovate.