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; }
上面的方式中文会乱码