摘要:
Spring中使用@ModelAttribute注解1.@ModelAttribute注释方法 例子(1),(2),(3)类似,被@ModelAttribute注释的方法会在此controller每个方法执行前被执行,因此对于一个controller映射多个URL的用法来说,要谨慎使用。(1)@ModelAttribute注释void返回值的方法code12345678910111213@Controllerpublic class HelloWorldController { @ModelAttributepublic void populateModel(@RequestParam Str 阅读全文
posted @ 2013-09-02 17:39
艨子
阅读(1519)
评论(1)
推荐(1)

浙公网安备 33010602011771号