[스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술] HTTP 응답 데이터
·
Back-End/Spring
[작성일: 2024. 07. 01] HTTPServletResponse - HTML 응답@WebServlet(name="responseHtmlServlet", urlPatterns = "/response-html")public class ResponseHtmlServlet extends HttpServlet { @Override protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //Content-Type: text/html;charset=utf-8 response.setContentType("text/htm..