Commit ba00c476 authored by Quxl's avatar Quxl

sd

parent 27fe7b54
...@@ -27,7 +27,7 @@ public class LocaleCookieInterceptor extends HandlerInterceptorAdapter { ...@@ -27,7 +27,7 @@ public class LocaleCookieInterceptor extends HandlerInterceptorAdapter {
} }
String[] kv = str.trim().split("_", 2); String[] kv = str.trim().split("_", 2);
String language = kv[0]; String language = kv[0];
String country = kv.length > 1 ? kv[1] : null; String country = kv.length > 1 ? kv[1] : "";
LocaleContextHolder.setLocale(new Locale(language, country)); LocaleContextHolder.setLocale(new Locale(language, country));
return super.preHandle(req, resp, handler); return super.preHandle(req, resp, handler);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment