웹을 개발하는 방법으로는 크게 3가지 방법이 있다.
1. 정적 컨텐츠 (static contents)
2. MVC와 템플릿 엔진(template engine)
3. API
오늘은 위의 3가지 방법중 정적컨텐츠를 알아보자
정적 컨텐츠란 서버의 도움없이 파일을 그대로 웹 브라우저에 보내주는 방식이다.
spring boot는 /static 경로에 있는 static content들을 제공한다.
말그대로 /static 경로에있는 파일들을 반환해준다는 뜻이다.
intellij를 통해 /static 경로에 hello-static.html 을 만들고 코드를 입력하고 웹 브라우저에서 localhost:8080/hello-static.html 로 들어가면 해당 내용이 보여지는 것을 알 수 있다.

1. 웹 브라우저에서 localhost:8080/hello-static.html을 내장 서버인 tomcat에게 요청한다.
2. tomcat은 hello-static.html을 다시 Spring에게 요청한다.
3. 요청받은 Spring은 Controller에게 먼저 요청을 보내 hello-static을 mapping한 메서드가 있는지 확인한다. Controller에서 메서드를 찾지 못한다면 resources/static 폴더에서 hello-static.html 파일을 찾아 화면에 보여준다.