(SpringBoot) Spring Mvc(1)
우리가 어떤 특정한 코드를 작성하지 않고 Spring Web Mvc를 바로 사용할 수 있는 이유
해당 maven 경로의 spring.factories에 설정되어 있는 WebMvcAutoConfiguration 클래스에 있는 자동 설정 파일 덕분
WebMvcAutoConfiguration 파헤치기
HiddenHttpMethodFilter : Spring3.0 이후부터 제공하는 Filter
PUT, DELETE, PATCH의
요청일 경우
_method로 파라미터를 받아와서
컨트롤러에 Mapping 한다.
FormContentFilter
HTTP POST에 Form Data를 보낼 수 있게 서블릿 스펙에 정의되어 있는데, FormContentFilter는 PUT과 PATCH, DELETE 요청에서도 Form Data를 사용할 수 있도록 Wrapping 해준다.
WebMvcAutoConfigurationAdapter :
기본적인 WebMvc 설정에서 보더 나은 기능을 Spring에서 컨벤션을 제공한다.
Spring Web Mvc 기능들을 확장해서 사용하고 싶을 때
WebMvcConfigurer
Web on Servlet Stack
This part of the reference documentation covers support for Servlet stack, WebSocket messaging that includes raw WebSocket interactions, WebSocket emulation via SockJS, and pub-sub messaging via STOMP as a sub-protocol over WebSocket. 4.1. Introduction The
docs.spring.io