摘要: 最简单的两种写法,加或不加@RequestParam注解 第一种写法参数为非必传,第二种写法参数为必传。参数名为userId。 第二种写法可以通过@RequestParam(required = false)设置为非必传。因为required值默认是true,所以默认必传。 第二种写法可以通过@Re 阅读全文
posted @ 2018-03-13 10:17 欠扁的小篮子 阅读(2868) 评论(0) 推荐(0) 编辑