springmvc controller之间传参

@RequestMapping("insert")
	public ModelAndView insert(PtlTableEndattr pte,ModelMap map,Integer workspaceId){
		ptlTableEndattrService.insert(pte);
		map.addAttribute("endId",pte.getEndattrid());
		map.addAttribute("workspaceId",workspaceId);
		return new ModelAndView( "forward:../PtlEndAttrController/selectByEndId.do",map);
	}

你可能感兴趣的:(springmvc controller之间传参)