오류상황
java.lang.assertionerror: expecting actual:
<h1> ?????</h1>
한글 깨지는거같아서 mustache에 hello 추가하고 assertThat(body).contains("hello");로 바꿔서 실행하니까 테스트 통과됨
한글이 문제여서 mustache한글 깨짐으로 검색함
해결방법
- 스프링 부트 버전 낮추기 : 이걸 할 순 없어서
- application.properties에
server.servlet.encoding.force-response=true
추가함