@RequestParam,@PathParam,@PathVariable等注解区别

@RequestParam 和 @PathVariable 注解是用于从request中接收请求的,两个均可以接收参数,关键点不一样的是@RequestParam 是从request里面拿取值,而 @PathVariable 是从一个URI模板里面来填充html @RequestParam 看下面一段代码:java http://localhost:8080/springmvc/hello/101
相关文章
相关标签/搜索