springMVC传值
1、URL中通过{}括号 ——> @PathVariable
2、URL中通过?键值对 ——> @ReuqestParam([name],[reqired],[defaultValue])
3、通过页面隐藏域 ——> 不用annotation直接写在参数中
4、ModelAttribute ——> 不用annotation直接写在参数中
1、URL中通过{}括号 ——> @PathVariable
2、URL中通过?键值对 ——> @ReuqestParam([name],[reqired],[defaultValue])
3、通过页面隐藏域 ——> 不用annotation直接写在参数中
4、ModelAttribute ——> 不用annotation直接写在参数中