码迷,mamicode.com
首页 > 编程语言 > 详细

springmvc中处理页面传递的乱码

时间:2018-08-05 11:48:39      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:def   spring   传递   col   int   springmvc   pre   request   hit   

@RequestMapping("/search")
    public String searchItemList(String keyword, 
            @RequestParam(defaultValue="1") Integer page, Model model) throws Exception {
        keyword = new String(keyword.getBytes("iso-8859-1"), "utf-8");

 

springmvc中处理页面传递的乱码

标签:def   spring   传递   col   int   springmvc   pre   request   hit   

原文地址:https://www.cnblogs.com/fengnan/p/9424815.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!