Method GET must not have a request body

来自ling
跳转至: 导航搜索
@GetMapping("/user/getUsersByRoles/{roles}")
   R<List<SysUserVO>> getUsersByRoles(@PathVariable("roles") String[] roles, @RequestHeader(SecurityConstants.FROM) String from);

需要使用{roles}和@PathVariable("roles")配合