?
前些天發現了一個巨牛的人工智能學習網站,通俗易懂,風趣幽默,忍不住分享一下給大家。點擊跳轉到教程。
Spring4.3中引進了{@GetMapping、@PostMapping、@PutMapping、@DeleteMapping、@PatchMapping},來幫助簡化常用的HTTP方法的映射,并更好地表達被注解方法的語義。
以@GetMapping為例,Spring官方文檔說:
@GetMapping是一個組合注解,是@RequestMapping(method = RequestMethod.GET)的縮寫。該注解將HTTP Get 映射到 特定的處理方法上。
Difference between?@GetMapping?&?@RequestMapping:
@GetMapping?does not support ?the consumes attribute of @RequestMapping.
返回JavaEEWeb開發系列導航
轉自:http://blog.csdn.net/webzhuce/article/details/53319468
?
?
?
?
?