Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required String[] parameter 'xxx' is not present #24

Open
Bobjoy opened this issue May 15, 2019 · 0 comments
Open

Required String[] parameter 'xxx' is not present #24

Bobjoy opened this issue May 15, 2019 · 0 comments
Labels

Comments

@Bobjoy
Copy link
Owner

Bobjoy commented May 15, 2019

前台请求

$.ajax({
  url: '/path/to/api‘,
  data:{ids: [1,2,3]},
  success:function(res){
    // ...
  }
});

后台处理

@RequestMapping("/path/to/api")
public R delete(@RequestParam("ids[]") String[] ids){
   return R.ok();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant