-
通过实战指南-Spring MVC 3.0中的注解绑定示例
资源介绍
通过注解绑定:示例
@RequestMapping(value="/handle1")
public String handle1(@RequestParam("userName") String userName,
@RequestParam("password") String password,
@RequestParam("realName") String realName){
...
}
@RequestMapping(value="/handle2")
public String handle2(@CookieValue("JSESSIONID") String sessionId,
@RequestHeader("Accept-Language") String accpetLanguage){
...
}
参考《Spring 3.x企业应用开发实战》