WebTestClient
WebClient 객체에 대한 테스트
API 가 올바르게 동작하는지 검증할 수 있음
WebMvcConfigurer
Spring MVC 를 위한 자바 기반 설정 콜백 메서드를 커스텀
addResourceHandlers
: 특정 경로에 대한
정적 파일
을 제공하기 위한 핸들러를 추가
addResourceHandler
: 설정한 경로에 대한 정적 파일 핸들러를 추가
addResourceLocations
: 정적 파일을 저장하는 경로 지정(클래스 패스)
CacheControl
HTTP 응답 메시지 헤더에 작성할
cache-control
의 값을 설정하는
빌더 객체