본문 바로가기

Programming/Spring Boot

[Spring Boot] 정적 컨텐츠 만들기 (vscode)

정적 콘텐츠 만들기

      • Spring boot는 기본적으로 src/main/resources/static 폴더의 파일을 정적으로 제공한다.
      • 예를 들어 static 폴더 안에 다음과 같이 hello.html을 만들고 다음과 같이 작성한다면
        localhost:포트번호/hello.html로 해당 정적콘텐츠를 확인할 수 있는 것이다.

 

동작 원리

 

 

 

 

 

728x90