WIN10/WIN8下的IE11发送的请求头中接受的语言参数
简体改为了zh-HANS-CN
繁体改为了zh-HANT-CN
导致request的locale变化
//解决方法:覆写相应的Locale
public class MyRequestWrapper extends HttpServletRequestWrapper{ @Override public Locale getLocale() { if (locale != null) { return locale; } Locale locale = super.getLocale(); if ("HANS".equals(locale.getCountry())) { return Locale.SIMPLIFIED_CHINESE; } else if ("HANT".equals(locale.getCountry())) { return Locale.TRADITIONAL_CHINESE; } else { return locale; } } }