[스프링] 웹 개발 기초

기록지·2022년 12월 14일
0

스프링

목록 보기
1/4
  1. 정적컨텐츠 - 화면 그대로 보여줌

    By default, Spring Boot serves static content from a directory called /static (or /public or /resources or /META-INF/resources) in the classpath or from the root of the ServletContext.

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

    정적 컨텐츠일경우 컨트롤러에 매핑되는 주소값이 없으면 자동으로 static 폴더의 hello-static.html 을 연결한다.

  1. MVC와 템플릿 엔진 - 서버에서 프로그래밍해서 html을 동적으로 변경후 뿌려주는 것.
  2. API - JSON 데이터 포맷으로 클라이언트에게 보여주는 방식.

0개의 댓글