String success="07大吉大利25";
@RequestMapping("str")
public String test1(){
return "redirect:/test/"+success+".do";
}
@RequestMapping("mv")
public ModelAndView test2(){
ModelAndView mv = new ModelAndView("redirect:/test/{success}.do");
mv.addObject("success", success);
return mv;
}
上面的方式中文会乱码
原文地址:https://www.cnblogs.com/buxiu/p/10764309.html
时间: 2024-10-10 10:29:28