[Spring/SpringBoot] 01. 스프링/스프링부트 환경설정

거북이·2024년 4월 1일
0

Spring/SpringBoot/JPA

목록 보기
1/6
post-thumbnail

📌Welcome Page

Spring Boot Reference Documentation에서 발췌한 부분이다.

Spring Boot supports both static and templated welcome pages. It first looks for an index.html file in the configured static content locations. If one is not found, it then looks for an index template. If either is found, it is automatically used as the welcome page of the application.

This only acts as a fallback for actual index routes defined by the application. The ordering is defined by the order of HandlerMapping beans which is by default the following:

Mapping설명
RouterFunctionMappingEndpoints declared with RouterFunction beans
WelcomePageHandlerMappingThe welcome page support
RequestMappingHandlerMappingEndpoints declared in @Controller beans

Spring Boot는 정적(static) 및 템플릿 welcome page를 지원한다.

먼저 static 폴더의 index.html 파일을 찾고 만약 파일이 없다면 index 템플릿을 찾는다.

📌Build

개발자가 작성한 소스 코드를 실행 버튼을 누르지 않고도 실행할 수 있는 독립적인 형태로 만들어 변환하는 과정을 빌드라고 한다.

📌출처

인프런 - 스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
Spring Boot Reference Documentation

0개의 댓글