Everyday Dev System

Spring Boot 기능 본문

내배캠 주요 학습/Spring 입문

Spring Boot 기능

chaeyoung- 2023. 6. 30. 00:09

 

해당 글은 SpringBoot의 공식 문서를 발췌하여 적어놓은 글입니다.
 Spring Boot 3.1.1 버전 , 링크 : https://spring.io/projects/spring-boot 
 

Spring Boot

 

spring.io

 

 

 

 

Intro


Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run".

We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need minimal Spring configuration.

 

  • 스프링 부트는 단독으로 실행하고, 상용화가 가능한 수준의 스프링 기반 응용 프로그램을 쉽게 만들 수 있습니다.
  • 최소한의 설정으로 Spring platform과 third-party 라이브러리를 사용할 수 있도록 한다.

 

 

 

Features


Create stand-alone Spring applications
Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)
Provide opinionated 'starter' dependencies to simplify your build configuration
Automatically configure Spring and 3rd party libraries whenever possible
Provide production-ready features such as metrics, health checks, and externalized configuration
Absolutely no code generation and no requirement for XML configuration

 

  • 단독 실행이 가능한 Spring 애플리케이션을 만듭니다.
  • 내장형 Tomcat, Jetty 혹은 Undertow가 내장되어 있습니다. (WAS 파일을 따로 배포할 필요X)
  • 빌드 설정을 간단하게 하기 위한 'starter' 의존성을 제공합니다.
  • 가능한 자동으로 Spring과 3rd party 라이브러리를 구성합니다.
  • 상용화에 필요한 통계, 상태 점검 및 외부설정을 제공합니다.
  • 설정을 위한 XML 코드를 생성하거나 요하지 않습니다.

 

 

 

빌드 설정을 간단하게 하기 위한 'starter' 의존성을 제공합니다.


 

3번째 기능이 이해가 되지 않아서 공식 문서를 자세히 찾아보았습니다.

아래는 공식 문서를 발췌해 온 내용입니다.

 


6.1.5. Starters

Starters are a set of convenient dependency descriptors that you can include in your application. You get a one-stop shop for all the Spring and related technologies that you need without having to hunt through sample code and copy-paste loads of dependency descriptors. For example, if you want to get started using Spring and JPA for database access, include the spring-boot-starter-data-jpa dependency in your project.

The starters contain a lot of the dependencies that you need to get a project up and running quickly and with a consistent, supported set of managed transitive dependencies.


The following application starters are provided by Spring Boot under the org.springframework.boot group:

 

 

사진은  org.springframework.boot  아래에 있는 그룹들을 보여주는 표입니다.

왼쪽에 "spring-boot-starter~"라고 적혀있는 코드들은

Spring Boot 프로젝트를 새로 생성 할 때, 추가를 하면 build.gradle에 의존성이 추가가 됩니다.

 

 

 

직접 보여드리겠습니다.

아래와 같이 프로젝트를 새로 생성하는 과정에서 의존성을 손쉽게 추가할 수 있습니다.

이를 확인하기 위해  build.gradle 파일에 가서 보면 생성시에 추가한 의존성이 명시되어 있는 것을 볼 수 있습니다. 

 

 

 

이를 통해 'starter' 의존성이 손쉽게 빌드 설정을 위해 지원해주고 있다는 것을 명확히 이해할 수 있었습니다.

아직 기초적인 부분을 학습하고 있지만, 모르는 부분은 찾아보고 튜터님들께도 질문하며 기본기를 탄탄히 다진 모르는 것은 계속 찾아보고 꾸준히 탐구해나가는 개발자가 되고 싶습니다.