修改pom.xml,增加了swagger2的jar
diff --git a/leaveschool/common/pom.xml b/leaveschool/common/pom.xml
index 67d0e78..2be58d3 100644
--- a/leaveschool/common/pom.xml
+++ b/leaveschool/common/pom.xml
@@ -12,7 +12,10 @@
<artifactId>leaveschool-common</artifactId>
<packaging>jar</packaging>
-
+ <properties>
+ <io.springfox.version>2.9.2</io.springfox.version>
+ </properties>
+
<dependencies>
<dependency>
@@ -30,6 +33,18 @@
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</dependency>
+
+ <dependency>
+ <groupId>io.springfox</groupId>
+ <artifactId>springfox-swagger2</artifactId>
+ <version>${io.springfox.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>io.springfox</groupId>
+ <artifactId>springfox-swagger-ui</artifactId>
+ <version>${io.springfox.version}</version>
+ </dependency>
+
<!-- Test things -->
<dependency>
diff --git a/leaveschool/common/src/main/java/com/supwisdom/leaveschool/common/model/PagerRequestModel.java b/leaveschool/common/src/main/java/com/supwisdom/leaveschool/common/model/PagerRequestModel.java
index 75309f1..adc2db5 100644
--- a/leaveschool/common/src/main/java/com/supwisdom/leaveschool/common/model/PagerRequestModel.java
+++ b/leaveschool/common/src/main/java/com/supwisdom/leaveschool/common/model/PagerRequestModel.java
@@ -3,6 +3,8 @@
import java.io.Serializable;
import java.util.Map;
+import io.swagger.annotations.ApiModelProperty;
+
public class PagerRequestModel implements Serializable {
/**
@@ -29,6 +31,7 @@
this.pageSize = pageSize;
}
+ @ApiModelProperty(hidden=true)
private Map<String, Object> mapBean;
public Map<String, Object> getMapBean() {