SpringBoot2로 Rest api 만들기(7) – MessageSource를 이용한 Exception 처리
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user