본문 바로가기
코드로 배우는 스프링 부트 - 인프런

정적 컨텐츠

by step 1 2022. 8. 3.
반응형

공식문서

Spring Boot Reference Documentation

 

Spring Boot Reference Documentation

This section goes into more detail about how you should use Spring Boot. It covers topics such as build systems, auto-configuration, and how to run your applications. We also cover some Spring Boot best practices. Although there is nothing particularly spe

docs.spring.io

 

프로젝트의 static이라는 폴더명에 파일을 넣어주면 스프링 부트에서 컨트롤러 설정을 하지 않아도 알아서 찾아준다.

웹 브라우저가 url로 해당 페이지를 호출하면 서버에서 컨트롤러의 해당하는 페이지가 있는지 파악하고 만약 없다면 static폴더안에 있는 페이지를 호출한다.

반응형

'코드로 배우는 스프링 부트 - 인프런' 카테고리의 다른 글

API  (0) 2022.08.04
MVC와 템플릿 엔진  (0) 2022.08.03
스프링부트 프로젝트 jar 파일로 빌드하고 실행하기  (0) 2022.08.01
view 환경설정  (0) 2022.08.01
라이브러리 살펴보기  (0) 2022.08.01