PathVariable 批量删除
时间: 2023-10-03 12:04:56 浏览: 118
@PathVariable是Spring MVC中的注解,用于将URL路径变量绑定到方法的参数上。在给定的示例代码中,@PathVariable用于将URL路径中的{id}和{status}绑定到方法参数Long id和Integer status上,实现对医院设置的锁定和解锁操作。
对于批量删除,示例代码中使用了@DeleteMapping和@RequestBody注解,@DeleteMapping用于将HTTP DELETE请求映射到方法上,@RequestBody用于将请求体中的数据绑定到方法参数List<Long> idList上,从而实现了批量删除医院设置的功能。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [项目设置批量删除和锁定接口](https://blog.csdn.net/weixin_59334478/article/details/128263717)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [若依框架之批量删除或修改的前后端总结](https://blog.csdn.net/alice_loves/article/details/128326224)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文