springMVC传值

1、URL中通过{}括号 ——> @PathVariable

2、URL中通过?键值对 ——> @ReuqestParam([name],[reqired],[defaultValue])

3、通过页面隐藏域 ——> 不用annotation直接写在参数中

4、ModelAttribute ——> 不用annotation直接写在参数中

posted @ 2017-02-21 17:11  ewwwe01  阅读(125)  评论(0)    收藏  举报