81,092
社区成员
发帖
与我相关
我的任务
分享
String url = request.getRequestURI();
String[] URI = uri.split("/");
Integer pageindex = Integer.valueOf(URI[2(这里根据URL里你的id在第几个来填)].replace(".html", ""));
@Controller
public class CommunityController {
@RequestMapping("/cummunity/edit")
public String editCommunity(@PathVariable Long comId, Model model,String comId) throws Exception {
CmCommunity community = communityService.getCommunityByComId(comId);
model.addAttribute("community",community);
return "/admin/communityedit";
}
}