确认
- [X] 我的版本是最新版本, 我的版本号与 version 相同, 并且项目里无依赖冲突
- [X] 我已经在 issue 中搜索过, 确认问题没有被提出过
- [X] 我已经修改标题, 将标题中的 描述 替换为遇到的问题
功能改进
希望代码生成器能够生成出新版注解。
基于 springdoc-openapi-starter-webmvc-ui
@ApiModel → @Schema @ApiModelProperty → @Schema
目前: @ApiModel(value = "Dept对象", description = "部门表") public class Dept implements Serializable {
@ApiModelProperty("主键ID")
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
}
期望: @Schema(name= "Dept对象", description = "部门表") public class Dept implements Serializable {
@Schema(description ="主键ID")
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
}
参考资料
https://springdoc.org/
章节 9. Migrating from SpringFox
https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Annotations
Comment From: lrf739146825
原来已经有了 enableSpringdoc()