본문 바로가기


Spring

[Spring] SpringBoot

Spring Boot 

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 very little Spring configuration. 
(출처 - https://projects.spring.io/spring-boot/)

특징

tomcat을 따로 설치하지 않아도 된다.

원래 Spring Framework로 개발하려고 하면 서버를 띄우기 위해 tomcat을 깔고 설정해주어야 한다. Jetty도 마찬가지 하지만 SpringBoot는 tomcat과 jetty를 따로 설치하지 않고 프로젝트 생성시에 내장시켜주면 된다. 따로 깔아서 설정하는 것보다 서버뜨는시간이 빠르다고 한다.
그리고 이렇게 서블릿컨테이너가 내장 되어 있으니 Jar를 만들어서 배포 하기도 쉽다. tomcat server에 war를 배포할 필요가 없다.

설정이 쉽다.

Spring Boot로 개발을 시작할때는 설정파일에 대한 많이 덜어준다. Spring Initailizer를 누르면 여러가지 설정을 그저 체크하기만 하면 된다. JPA/MySQL 등등 드라이버도 필요없다. 사용하고 있는 빌드툴의 설정파일이 아니라 자바파일로 설정이 가능하다. 다양한 XML파일을 사용할 필요가 없다.

'Spring' 카테고리의 다른 글

[SpringBatch] JpaPagingItemReader 예제  (0) 2023.01.10