759 Star 6.6K Fork 1.4K

GVP萧明 / knife4j

 / 详情

@ApiOperationSupport 无效

已完成
创建于  
2019-12-06 14:03
  @ApiOperation(value = "新装收货地址", notes = "新装收货地址", httpMethod = "POST")
    @ApiOperationSupport(ignoreParameters = {"addressId"})
    @PostMapping("/add")
    public Rest<Object> add(@Validated @RequestBody AddressBO bo) {
        System.out.println(bo);
        // addressService.addNewUserAddress(bo);
        return Rest.ok();
    }
@Data
@ApiModel(value = "用户新增地址的BO", description = "调用接口发送的对象")
public class AddressBO {
    public interface Save extends Default {}

    public interface Update extends Default {}

    @ApiModelProperty(value = "地址ID", name = "addressId", example = "190825CG3AA14Y3C", required = true)
    @NotBlank(message = "地址ID addressId 不能为空", groups = Update.class)
    private String addressId;

    @ApiModelProperty(value = "用户ID", name = "userId", example = "1908189H7TNWDTXP", required = true)
    @NotBlank(message = "用户ID userId 不能为空")
    private String userId;
}

输入图片说明

<dependency>
            <groupId>com.github.xiaoymin</groupId>
            <artifactId>knife4j-spring-ui</artifactId>
            <version>1.9.6</version>
        </dependency>
        <dependency>
            <groupId>com.github.xiaoymin</groupId>
            <artifactId>knife4j-spring-boot-starter</artifactId>
            <version>1.9.6</version>
        </dependency>

评论 (2)

jamie 创建了任务
萧明 任务状态待办的 修改为进行中
萧明 添加了
 
enhancement
标签
展开全部操作日志

试试2.0.2 版本,已修复,谢谢

萧明 任务状态进行中 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(3)
118100 xiaoym 1578918321 8518326 paddypong 1626518078 1407025 jamie 818 1620984321
Java
1
https://gitee.com/xiaoym/knife4j.git
git@gitee.com:xiaoym/knife4j.git
xiaoym
knife4j
knife4j

搜索帮助