此插件配置过于灵活, 以下均为示例, 需根据实际情况做合适的处理。
module 用于分类 api.apifox-helper.properties 示例# read folder name from tag `folder`
folder.name=#folder@folder 注释.apifox-helper.properties 示例# 假定 公共 ResponseDo 的包名为 com.xxx
method.return=groovy: "com.xxx.ResponseDo<" + it.returnType() +">"#ignore class or method which has comment tag 'ignore'
ignore=#ignorejson.rule.field.ignorejava.time.LocalDateTime作为yyyy-mm-dd形式字符串处理java.time.LocalDateTime作为timestamp处理method.doc 将可能的返回放在方法备注中field.doc 将可能的类型值放在字段备注中>= 1.1.16,然后可以通过项目内配置规则来实现适配识别。Page 模型 = com.baomidou.mybatisplus.extension.plugins.pagination.Page,注意有些配置是可选的,根据自己的项目代码风格选择即可。method.return 配置,并增加注释 @response 如下图current, size参考来源 Github Issue,其他文章
javax.validation, 勾选javax.validation(grouped)Jackson_JsonIgnoreProperties