You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
스프링 부트 스타터와 라이브러리 관리
라이브러리 직접 관리 → 외부 라이브러리 버전 직접 관리 & 의존성 있는 라이브러리 관리
스프링 부트 라이브러리 버전 관리
스프링 부트에서 버전관리를 제공함으로써 개발자는 아래와 같이 의존성의 이름만 명시하면 버전은 자동으로 관리해줌
implementation 'org.springframework:spring-webmvc'dependency-management 버전 관리
io.spring.dependency-management 플러그인을 사용하면 spring-boot-dependencies에 있는 bom정보를 참고함.
spring-boot-dependencies는 스프링 부트 gradle 플러그인에서 사용하기에 의존관계가 직접적인 보이지않음
버전정보 bom
build.gradle 문서에 bom이라는 항목이 있고, 거기에 각 라이브러리에 대한 버전이 명시되어 있음
BOM(bill of materials)
자재 명세서란 제품을 구성하는 모든 부품들에 대한 목록을 뜻함
스프링 부트 스타터
웹 개발을 위해서 웹MVC, 내장 톰캣, JSON처리 등 수많은 라이브러리가 사용됨
스프링 부트가 버전을 관리를 해주지만 특정 작업을 위해 필요한 라이브러리를 모두 import 해주지 않음
스프링 부트는 스타터를 통해서 프로젝트를 시작하는데 필요한 라이브러리 모음을 제공함
dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' }spring-boot-starter-web 하나에 웹 개발에 필요한 라이브러리가 포함되어 있음
spring-boot-starter-* 이라는 네이밍 패턴을 띄고 있으며, spring home에서 구성을 확인할 수 있음
특정 라이브러리의 버전 지정
build.gradle에서 다음의 문구를 정의함으로써 버전을 명시할 수 있음
ext['tomcat.version'] = '10.1.4'Beta Was this translation helpful? Give feedback.
All reactions