@PathVariable注解添加带点号导致参数被截取的解决办法

value中的{search}换成{search:.+}即可解决

@RequestMapping("/outToExcel/{logType}/{search:.+}")

@ResponseBody

public ModelAndView outLogToExcel(

@PathVariable String logType,
HttpServletResponse response ,

HttpServletRequest request,

@PathVariable String search

)

猜你喜欢

转载自blog.csdn.net/zhuchunyan_aijia/article/details/81207780
今日推荐