SpringMVC方法参数拦截bug

HTTP Status 400 - Required String parameter 'currentPage' is not present

 

type Status report

message Required String parameter 'currentPage' is not present

description The request sent by the client was syntactically incorrect.


Apache Tomcat/8.0.15

 抛出的出错信息:所需的“currentPage”字符串参数不存在,

                             客户端发出的请求语法不正确。

惊讶SpringMVC的拦截器,代码:

	@RequestMapping(value = "/stationList.html")
    public ModelAndView stationList(addStationVo vo,
    		@RequestParam("currentPage") String currentPage,
    		@RequestParam("pageSize") String pageSize){
		ModelAndView mv = new ModelAndView(); 
		try{

 当时,我并没有把currentPage参数传过去

你可能感兴趣的:(springMVC)