스프링 웹 개발 방식 세 가지
- 정적 컨텐츠
- MVC와 템플릿 엔진
- API
1. 정적 컨텐츠
서버 없이 파일을 그냥 그대로 웹 브라우저에 내려 주는 것
Spring Boot Features
Graceful shutdown is supported with all four embedded web servers (Jetty, Reactor Netty, Tomcat, and Undertow) and with both reactive and Servlet-based web applications. It occurs as part of closing the application context and is performed in the earliest
docs.spring.io
2. MVC와 템플릿 엔진
JSP, PHP 는 소위 템플릿 엔진
HTML을 그냥 주는 것이 아니라 서버에서 프로그래밍해서 동적으로 바꿔서 내려 주는 것
이것을 수행하기 위한 Controller, Model, View(템플릿 엔진 화면)를 MVC라고 함 -> 요즘 이 방식으로 많이 개발!
3. API
안드로이드 혹은 아이폰 클라이언트와 개발을 해야 할 때, JSON이라는 데이터 구조 포맷으로 클라이언트에게 데이터를 전달하는 것
'~2023.02 > Spring' 카테고리의 다른 글
About Spring (0) | 2023.01.07 |
---|---|
[Spring]좋은 객체 지향 설계를 위한 5가지 원칙 - SOLID (0) | 2022.06.11 |