-
接口注解:
@ApiOperation(value = "接口描述", notes = "") -
接口类注解
@RestController -
接口参数注解:
@Valid -
接口参数属性注解
@NotNull(message = "###不能为空")
@ApiParam(value = "属性描述", required = true) -
接口返回model注解
@ApiModel(value = "返回类名", description = "描述") -
接口返回model中的属性注解
@ApiModelProperty(value = "响应消息", required = true)
网友评论