主要就是通过@PathVariable 注解来获取
RequestMapping("listData_{key}")
public voidlistData(HttpServletRequest request, HttpServletResponse response, @PathVariable(value = "key") String key) throws Exception {
System.out.println(key);
}
主要就是通过@PathVariable 注解来获取
RequestMapping("listData_{key}")
public voidlistData(HttpServletRequest request, HttpServletResponse response, @PathVariable(value = "key") String key) throws Exception {
System.out.println(key);
}