springboot 接收POST和GET请求

接收post请求:

@IgnoreAuth
    @RequestMapping(value ="/pay/commit", method = RequestMethod.POST)
    public R pay(@RequestParam String orderToken,@RequestParam String idType)

post和get都可以:

@IgnoreAuth
    @RequestMapping("/pay/commit")
    public R pay(@RequestParam String orderToken,@RequestParam String idType)

 

你可能感兴趣的:(SpringBoot)