From aedfe7bb6257bbb18320d9b8d78867b50cbba4f8 Mon Sep 17 00:00:00 2001 From: shijie <648688341@qq.com> Date: Wed, 29 Jul 2020 08:51:18 +0800 Subject: [PATCH] =?UTF-8?q?swagger=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 5 +++++ .../java/com/yipin/liuwanr/entity/Project_Management.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 583cdbb..c17f6fb 100644 --- a/pom.xml +++ b/pom.xml @@ -80,6 +80,11 @@ springfox-swagger2 2.7.0 + + org.springframework.boot + spring-boot-test + 2.3.1.RELEASE + diff --git a/src/main/java/com/yipin/liuwanr/entity/Project_Management.java b/src/main/java/com/yipin/liuwanr/entity/Project_Management.java index 2580928..60756a5 100644 --- a/src/main/java/com/yipin/liuwanr/entity/Project_Management.java +++ b/src/main/java/com/yipin/liuwanr/entity/Project_Management.java @@ -11,7 +11,7 @@ import io.swagger.annotations.ApiModelProperty; @ApiModel(value = "Project_Management对象", description = "项目管理对象Project_Management") public class Project_Management { - @ApiModelProperty(hidden = true) + @ApiModelProperty(value = "项目主键ID,编辑项目需要传,新增项目不需要传", name = "projectId", example = "223") private Integer projectId;// 项目主键ID @ApiModelProperty(value = "项目名称", name = "projectName", example = "python教学项目", required = true)