此插件配置过于灵活, 以下均为示例, 需根据实际情况做合适的处理。
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=#ignore
json.rule.field.ignore
java.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