标签:turn mod rect bsp mapping springmvc mvc public return
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;
}
上面的方式中文会乱码
标签:turn mod rect bsp mapping springmvc mvc public return
原文地址:https://www.cnblogs.com/buxiu/p/10764309.html