2013年10月24日
摘要: 引起乱码原因为spring mvc使 用的默认处理字符串编码为ISO-8859-1,具体参考 org.springframework.http.converter.StringHttpMessageConverter类中public static final Charset DEFAULT_CHARSET = Charset.forName("ISO-8859-1");解决方法:第一种方法:对于需要返回字符串的方法添加注解,如下:@RequestMapping(value="/getUsers", produces = "application 阅读全文
posted @ 2013-10-24 15:20 little fat 阅读(598) 评论(0) 推荐(1) 编辑