SpringBoot2로 Rest api 만들기(7) – MessageSource를 이용한 Exception 처리

This commit is contained in:
kimyonghwa
2019-04-16 10:52:33 +09:00
parent ffd8fe10be
commit ffd8e8236d
7 changed files with 45 additions and 39 deletions

View File

@@ -28,7 +28,7 @@ public class MessageConfiguration implements WebMvcConfigurer {
}
@Bean // 지역설정을 변경하는 인터셉터. 요청시 파라미터에 lang 정보를 지정하면 언어가 변경됨.
private LocaleChangeInterceptor localeChangeInterceptor() {
public LocaleChangeInterceptor localeChangeInterceptor() {
LocaleChangeInterceptor lci = new LocaleChangeInterceptor();
lci.setParamName("lang");
return lci;