Backend/Spring
[Spring Boot] Spring Boot에 대해
땅지원
2022. 10. 31. 15:11
Spring Boot
Spring의 경우 Application을 개발하려면 사전의 많은 작업(library 추가, dependency 설정, SpringFramework가 처리해야 하는 여러 가지 구성 및 설정 파일 등)을 해야 했다.
장점
- project에 따라 자주 사용되는 library들이 미리 조합되어 있다.
- 복잡한 설정을 자동으로 처리
- 내장 서버를 포함해서 tomcat과 같은 WAS를 추가로 설치하지 않아도 개발 가능
- WAS에 배포하지 않고도 실행할 수 있는 JAR(Java Archive File)로 Web Application 개발 가능
Packaging
Jar - JSP 포함안됨
War = JSP 포함
application.properties에서 서버 관련된 설정을 한다
기본적으로 Spring Boot는 JSP를 못쓰게 해놓아서 따로 설정해줘야함
<!-- JSP Setting -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
</dependency>