上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 38 下一页
摘要: 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 艨子 阅读(1507) 评论(1) 推荐(1) 编辑
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 38 下一页