MockHttpServletResponse
에서는 정상적으로 한글이 표시되는데, AssertionError
가 발생한 곳을 보면 한글이 깨진 상태입니다.
HttpEncodingAutoConfiguration
에서 응답에 대해 UTF-8을 강제로 설정하지 않습니다.
application.yml
또는 application.properties
파일에서 응답도 강제하도록 설정합니다.
server:
servlet:
encoding:
force-response: true
server.servlet.encoding.force-response=true