當前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
SpringMVC之组合注解@GetMapping
生活随笔
收集整理的這篇文章主要介紹了
SpringMVC之组合注解@GetMapping
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
轉載自?http://blog.csdn.net/webzhuce/article/details/53319468
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開發系列導航。
總結
以上是生活随笔為你收集整理的SpringMVC之组合注解@GetMapping的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Redis持久化-数据丢失及解决
- 下一篇: 30分钟学玩转RabbitMQ