Request Response - Acceptance of Array Collection Parameters

Array Collection Parameters

  • Array parameter: the name of the request parameter is the same as the name of the formal parameter group and there are multiple request parameters, and the parameter can be accepted by defining an array type parameter
    • The specific key codes are as follows:
      • Issue the corresponding request in psotman, the result is as follows:
  • Collection parameters: the request parameter has the same name as the formal parameter collection and there are multiple request parameters, @RequestParam binds the parameter relationship
    • The key code is as follows:
      • Send the corresponding request in postman, the result is as follows:

       

Guess you like

Origin blog.csdn.net/weixin_64939936/article/details/131666646