본문 바로가기
Spring/스프링 입문

[Spring] 2-1. 정적 컨텐츠

by ♡˖GYURI˖♡ 2023. 10. 31.

스프링 부트 정적 컨텐츠 기능

https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/html/spring-boot-features.html#boot-features-spring-mvc-static-content

 

 

resources/static/hello-static.html

<!DOCTYPE HTML>
<html>
    <head>
        <title>static content</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    </head>
    <body>
        정적 컨텐츠 입니다.
    </body>
</html>

실행 : http://localhost:8080/hello-static.html

 

정적 컨텐츠 이미지

 

 

 

 


https://www.inflearn.com/course/%EC%8A%A4%ED%94%84%EB%A7%81-%EC%9E%85%EB%AC%B8-%EC%8A%A4%ED%94%84%EB%A7%81%EB%B6%80%ED%8A%B8

 

[무료] 스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술 - 인프런 | 강의

스프링 입문자가 예제를 만들어가면서 스프링 웹 애플리케이션 개발 전반을 빠르게 학습할 수 있습니다., 스프링 학습 첫 길잡이! 개발 공부의 길을 잃지 않도록 도와드립니다. 📣 확인해주세

www.inflearn.com

 

'Spring > 스프링 입문' 카테고리의 다른 글

[Spring] 2-3. API  (1) 2023.10.31
[Spring] 2-2. MVC와 템플릿 엔진  (0) 2023.10.31
[Spring] 1-4. 빌드하고 실행하기  (0) 2023.10.30
[Spring] 1-3. View 환경설정  (0) 2023.10.30
[Spring] 1-2. 라이브러리 살펴보기  (0) 2023.10.30