스프링 부트에 템플릿 엔진으로 머스테치를 사용하게 되면, 한글이 깨져나왔다.
위와 같은 환경에서 올바른 한글 출력을 위한 설정은 아래와 같다.
application.properties
server.servlet.encoding.force-response=true
참고문헌
https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html
'Java > SpringBoot' 카테고리의 다른 글
| Spring Security CSRF 설정 (0) | 2021.12.09 |
|---|---|
| Spring Security 기본 설정 (0) | 2021.12.08 |
| Logback 기본 설정 (0) | 2021.12.07 |