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)