springmvc中处理页面传递的乱码

@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");

 

posted @ 2018-08-05 10:55  LOGAN彡  阅读(215)  评论(0编辑  收藏  举报