minlog
article thumbnail
[ Spring / SpringBoot ] 스프링 웹 개발 기초 : 정적 컨텐츠 / MVC / API
BackEnd/Spring Boot 2023. 2. 25. 00:04

1. 정적 컨텐츠 스프링 부트 정적 컨텐츠 기능이 있다. resources 폴더안에 static 폴더에 정적인 컨텐츠는 컨트롤러가 없어도 해당 URI가 자동으로생성된다. Spring Boot Features 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...

article thumbnail
[ Spring / SpringBoot ] View 환경설정
BackEnd/Spring Boot 2023. 2. 24. 19:56

View 환경설정 1. Welcome Page 만들기. 스프링 부트가 제공하는 Welcome Page 기능. static/index.html 을 올려두면 Welcome page 기능을 제공한다. 💡 thymeleaf 템플릿 엔진 thymeleaf 공식 사이트: https://www.thymeleaf.org/ 스프링 공식 튜토리얼: https://spring.io/guides/gs/serving-web-content/ 스프링부트 메뉴얼: https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/ html/spring-boot-features.html#boot-features-spring-mvc-template-engines 💡 thymeleaf 템플..

article thumbnail
[ Spring / SpringBoot ] 스프링부트 프로젝트 생성 및 실행 시켜보기
BackEnd/Spring Boot 2023. 2. 24. 19:55

프로젝트 생성 1) Java 11버전 설치 2) IDE는 인텔리제이 또는 이클립스 설치 3) 스프링 / 부트 Start 사이트로 이동해서 스프링 프로젝트 생성 ( https://start.spring.io ) 필요한 라이브러리 및 빌드까지 관리해주는 툴 Group : 기업 명칭 project : maven / gradle (요즘은 대부분 그래이들 사용) lenguage : java Spring Boot : 2.3.1 Artifact : 프로젝트명 (결과물) Dependencies : 어떤 라이브러리를 쓰는지 = > 웹프로젝트 Spring wep , 웹 브라우저에서 보이는 html을 만들어주는 탬플릿 API Thymeleaf GENERATE 로 다운로드 받기 4) 인텔리제이에서 빌드로 프로젝트 열기 - 선..