url传递多参数到spring mvc处理

jsp页面spring

window.location.href="${contextPath}/tts/stock/tradingstrategy/save/"+name+"&"+shortName+"&"+code;mvc

 

spring mvc后台app

@RequestMapping(value = "save/{name}&{shortName}&{code}", method = RequestMethod.GET)
 @ResponseBody
 public String preCreate4( @PathVariable String name, @PathVariable String shortName, @PathVariable String code) {
  System.out.println("name:"+name+"shortName:"+shortName+"code:"+code);
  return Editor;
 }jsp

相关文章
相关标签/搜索