@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之间传参
最新推荐文章于 2025-01-04 17:35:12 发布
本文详细介绍了如何在Spring框架下通过@RequestMapping注解实现前端页面跳转,并将参数传递至目标控制器进行处理,具体包括插入操作及返回特定视图的过程。
1542

被折叠的 条评论
为什么被折叠?



