@postmapping的name作用
时间: 2023-10-03 16:07:16 浏览: 125
Spring @Valid @Validated实现验证
@Postmapping注解并没有name属性。在引用中的代码示例中,name是RequestMapping注解的属性,而不是@Postmapping的属性。RequestMapping注解中的name属性用于指定映射的名称。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [@GetMapping、@PostMapping和@RequestMapping的区别](https://blog.csdn.net/qq_46130027/article/details/129966437)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Spring之@RequestMapping、@GetMapping、 @PostMapping 三者的区别](https://blog.csdn.net/u011932309/article/details/128145354)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文