1.修改XML(web.xml)
image.png2.修改controller的@RequestMapping("count/{num}")
image.png3.参数前加@PathVariable
image.png4.修改<a>
<a href="${ pageContext.request.contextPath }/count/98">get请求</a>
<a href="${ pageContext.request.contextPath }/count/98">get请求</a>
本文标题:RESTful架构
本文链接:https://www.haomeiwen.com/subject/wrybqqtx.html
网友评论