Spring Boot

Spring Boot Starters

Starters (web, data-jpa, security, test), transitive dependencies, BOM, custom starters

18 คำถามสัมภาษณ์·
Junior
1

What is a Spring Boot Starter?

คำตอบ

A starter is a dependency descriptor that automatically bundles all necessary libraries for a specific use case, with compatible versions tested together. This eliminates the need to manually search for each dependency and automatically manages transitive dependencies. For example, spring-boot-starter-web includes Spring MVC, embedded Tomcat, Jackson for JSON, and all their compatible dependencies.

2

What is the naming convention for official Spring Boot starters?

คำตอบ

All official Spring Boot starters follow the naming convention spring-boot-starter-*, where the asterisk represents the type of application or functionality. This convention allows immediately distinguishing official starters maintained by the Spring Boot team from community-created third-party starters which use the reverse pattern *-spring-boot-starter. This distinction is important for trust and compatibility. Official examples: spring-boot-starter-web, spring-boot-starter-data-jpa, spring-boot-starter-security.

3

What is the role of spring-boot-starter-parent in a project?

คำตอบ

The spring-boot-starter-parent is a Maven parent POM that provides centralized version management for all Spring Boot dependencies and compatible third-party libraries. It also defines default Maven configurations such as UTF-8 encoding, Java version, and build plugins. Thanks to it, there is no need to specify versions for managed dependencies, which ensures compatibility and simplifies maintenance.

4

What are transitive dependencies in a starter?

5

Which starter to use for creating a REST web application with Spring Boot?

+15 คำถามสัมภาษณ์

หัวข้อสัมภาษณ์ Spring Boot อื่นๆ

Spring Core - IoC & DI

Junior
22 คำถาม

Spring Boot Auto-Configuration

Junior
20 คำถาม

Application Properties & YAML

Junior
16 คำถาม

Logging with SLF4J & Logback

Junior
20 คำถาม

Spring Boot DevTools

Junior
15 คำถาม

Spring MVC Basics

Mid-Level
20 คำถาม

Spring REST Controllers

Mid-Level
20 คำถาม

Request & Response Handling

Mid-Level
20 คำถาม

Exception Handling

Mid-Level
25 คำถาม

Bean Validation

Mid-Level
25 คำถาม

Spring Data JPA Basics

Mid-Level
25 คำถาม

JPA Entities & Relationships

Mid-Level
30 คำถาม

JPA Queries

Mid-Level
30 คำถาม

Spring Data Repositories

Mid-Level
25 คำถาม

Spring Security Basics

Mid-Level
25 คำถาม

Spring Boot Actuator

Mid-Level
20 คำถาม

Unit Testing with JUnit & Mockito

Mid-Level
30 คำถาม

Spring Boot Testing

Mid-Level
30 คำถาม

Profiles & Environment

Mid-Level
20 คำถาม

RestTemplate & WebClient

Mid-Level
24 คำถาม

Async & Scheduling

Mid-Level
25 คำถาม

Caching with Spring

Mid-Level
25 คำถาม

Spring WebFlux (Reactive)

Mid-Level
25 คำถาม

Spring Transactions

Senior
30 คำถาม

Advanced Authentication & Authorization

Senior
30 คำถาม

JWT & Stateless Security

Senior
20 คำถาม

OAuth2 & Authorization Server

Senior
20 คำถาม

Spring Boot & Docker

Senior
19 คำถาม

Microservices with Spring

Senior
25 คำถาม

Spring Cloud Config

Senior
19 คำถาม

Performance Optimization

Senior
30 คำถาม

GraalVM Native Images

Senior
20 คำถาม

เชี่ยวชาญ Spring Boot สำหรับการสัมภาษณ์ครั้งถัดไป

เข้าถึงคำถามทั้งหมด flashcards แบบทดสอบเทคนิค แบบฝึกหัด code review และตัวจำลองสัมภาษณ์

เริ่มใช้ฟรี