1.修改XML(web.xml) image.png 2.修改controller的@RequestMapping("count/{num}") image.png 3.参数前加@PathVariable image.png 4.修改<a> <a href="${ pageContext.request.contextPath }/count/98">get请求</a>