摘要:
本质:传过来的参数类型与待接收的参数类型不一致。 我传输过来的参数如下: 我待接收的参数如下: 你可能会说,将List<Long> 改为Long! 对,这是一种方法,但我想要该函数既能介绍单个参数,又能接收多个参数。在业务上即单个删除与批量删除合并。 所以最终解决方法: @DeleteMapping 阅读全文
摘要:
该接口的写法如下: @RequestMapping (value = "/status/{status}", method = {RequestMethod.GET, RequestMethod.POST}) public Result changeStatus(@PathVariable int 阅读全文