본문 바로가기

Spring/Reference

Spring Boot - Reference

 

 

스프링을 쉽게 만들수 있도록 해주는 스프링 부트

라이브러리등 어느정도 틀을 잡아놓은 스프링 이라고 할 수 있다.

 

java -jar 를 이용해 쉽게 실행 할 수 있다.

war 파일로도 물론 배포 할 수 있다.

 

스프링 부트 설치 방법

아무런 IDE 에서 의존성을 추가하면 사용 할 수 있다.

Maven 이나 Gradle 을 이용해서 설치하는 것 을 권장한다.

 

이건 pom.xml 상속시켜서 사용하는법

parent 를 사용을 하면 해당 프로젝트를 상속 받는 프로젝트에서는

dependency 에서 version 을 명시하지 않아도 된다.

 

 

pom.xml 에 레퍼런스에 있는 pom.xml 을 복붙하면 된다.

 

 

sample code

@EnableAutoConfiguration

스프링 부트가 제공하는 어노테이션이다.

스프링 부트가 제공하는 기본 설정을 쓰라는 어노테이션이다.

 

 

 

Starters 를 이용하면 이미 만들어져 있는 의존성들을 쉽게 받아 사용가능하다.

 

 

 

 

 

 

 

 

https://docs.spring.io/spring-boot/docs/2.0.0.RC2/reference/htmlsingle/#getting-started-sdkman-cli-installation

 

Spring Boot Reference Guide

This section dives into the details of Spring Boot. Here you can learn about the key features that you may want to use and customize. If you have not already done so, you might want to read the "Part II, “Getting Started”" and "Part III, “Using Spring Boot

docs.spring.io

 

 

'Spring > Reference' 카테고리의 다른 글

[reference] Spring Framework Core - Bean  (0) 2020.04.15
[reference] Spring Framework Core - Container  (0) 2020.04.15