使用Get的请求时,报了Method has too many Body parameters: public abstract entity的错误。
修正:
GET请求需要加上@RequestParam这个注解

@GetMapping("/current/select")
public Result<List<Order>> listCurrentOrderBySelect(
本文解决了一个关于使用GET请求时MethodHasTooManyBodyParameters的错误,重点讲解如何通过添加@RequestParam注解正确处理@RequestParam(semester)和@RequestParam(stateExam)参数。
使用Get的请求时,报了Method has too many Body parameters: public abstract entity的错误。
修正:
GET请求需要加上@RequestParam这个注解

@GetMapping("/current/select")
public Result<List<Order>> listCurrentOrderBySelect(
1180
2598
3522
6259

被折叠的 条评论
为什么被折叠?