访问的地址是http://localhost:8080/hkgj/indexTwoPageController.do?goInformationThreePage&id=00637fadc828496fb160ded6f8407b79
希望浏览器url只显示
http://localhost:8080/hkgj/
使用的是spring
1、js页面: 点击更多>>,打开新页面
2、跳转到Java后台方法:
@RequestMapping(params = "goInformationThreePage")
public ModelAndView goInformationTwoPage(HttpServletRequest requset){
ModelAndView mav = new ModelAndView("com/index/threePage/informationThreePage");
mav.addObject("id", requset.getParameter("id"));
return mav;
}
打开页面后浏览器url:http://localhost:8080/hkgj/indexTwoPageController.do?goInformationThreePage&id=00637fadc828496fb160ded6f8407b79
希望结果是:http://localhost:8080/hkgj/
ps: 没币,只有这么多。谢谢。