这是前台页面
首页
订单中心
这是controller:
@Controller
@RequestMapping(value=”order”)
public class MarkOrderController {
@Resource
private OrderMapper orderMapper;
@RequestMapping(value=”queryorder”, method=RequestMethod.GET)
public String queryorder(HttpServletRequest request){
System.out.println(“11111″);
return”orderdetail”;
}
@RequestMapping(value=”queryorder”,method=RequestMethod.POST)//,method=RequestMethod.POST
@ResponseBody
public Page queryorderGrid(HttpServletRequest request,Model model){
int pageNo=Integer.parseInt(request.getParameter(“page”));
int pageSize=Integer.parseInt(request.getParameter(“rows”));
Page page=new Page(pageNo,pageSize);
Map map=new HashMap();
orderMapper.selectOrderByPage(map,page);
return page;
}
}
这是spring—mvc。xml中的配置
p:prefix=”/WEB-INF/views/” p:suffix=”.jsp”/>
本人要跳转的页面就写在views下
解决方案
40
查看跳转路径及拦截路径
CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明跳转页面时程序进不到controller里,求指点!