1. @ ApiImplicitParam annotation dataType, difference paramType two properties?
@ApiImplicitParam(name = "id",value = "用户id",required = true,dataType = "int",paramType = "body")
dataType = "int" request of the representative parameters of type int type, of course, also be Map, User, String and the like;
Where paramType = "body" represents the parameter should be placed in the request:
header -> on the request header. Acquiring request parameters: @RequestHeader (receiving annotations code)
Query -> parameters for the get request splicing. Acquiring request parameters: @RequestParam (receiving annotation tag)
path (for restful interface) -> Get request parameter: @PathVariable (code received annotation)
body -> in the request body. Acquiring request parameters: @RequestBody (receiving annotation tag)
form (not used)