❗사전 준비물
Java 11 설치, IntelliJ 준비
❗스프링 부트 스타터 사이트에서 스프링 프로젝트 생성
❗
java 폴더 밑에 실제 패키지랑 소스파일
test 테스트 코드와 관련된 파일들이 들어가 있음
resources 폴더는 자바 코드를 제외한 프로퍼티나 xml 등이 들어가 있음
❗라이브러리
Gradle은 의존관계가 있는 라이브러리를 함께 다운로드 한다
❗View 환경 설정
웰컴 페이지 생성(도메인만 누르고 들어왔을 때 보이는 화면)
스프링부트는 static/index.html을 올려두면 Welcom page 기능을 제공함
Spring Boot Features
Graceful shutdown is supported with all four embedded web servers (Jetty, Reactor Netty, Tomcat, and Undertow) and with both reactive and Servlet-based web applications. It occurs as part of closing the application context and is performed in the earliest
docs.spring.io
thymeleaf 템플릿 엔진
thymeleaf 공식 사이트: https://www.thymeleaf.org/
Thymeleaf
Integrations galore Eclipse, IntelliJ IDEA, Spring, Play, even the up-and-coming Model-View-Controller API for Java EE 8. Write Thymeleaf in your favourite tools, using your favourite web-development framework. Check out our Ecosystem to see more integrati
www.thymeleaf.org
스프링 공식 튜토리얼: https://spring.io/guides/gs/serving-web-content/
Serving Web Content with Spring MVC
this guide is designed to get you productive as quickly as possible and using the latest Spring project releases and techniques as recommended by the Spring team
spring.io
Spring Boot Features
Graceful shutdown is supported with all four embedded web servers (Jetty, Reactor Netty, Tomcat, and Undertow) and with both reactive and Servlet-based web applications. It occurs as part of closing the application context and is performed in the earliest
docs.spring.io
❗controller
❗빌드하고 실행하기
'🔻Back-End > Spring' 카테고리의 다른 글
[Spring] 스프링 입문 3차시 (0) | 2022.09.19 |
---|---|
[Spring] 스프링 입문 2차시 (0) | 2022.09.18 |
[Spring] 스프링 입문 0차시 (0) | 2022.09.17 |
[Spring] 웹개발의 봄, Spring 5주차 (0) | 2022.07.21 |
[Spring] 웹개발의 봄, Spring 4주차-3 (0) | 2022.07.19 |