Browse Source

update[litemall-core]: 支持swagger2。

Junling Bu 7 years ago
parent
commit
a63bdd6330
2 changed files with 22 additions and 0 deletions
  1. 10 0
      litemall-core/pom.xml
  2. 12 0
      pom.xml

+ 10 - 0
litemall-core/pom.xml

@@ -22,6 +22,16 @@
             <artifactId>jackson-datatype-jsr310</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger2</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger-ui</artifactId>
+        </dependency>
+
     </dependencies>
 
 </project>

+ 12 - 0
pom.xml

@@ -100,6 +100,18 @@
                 <artifactId>weixin-java-miniapp</artifactId>
                 <version>3.0.0</version>
             </dependency>
+
+            <dependency>
+                <groupId>io.springfox</groupId>
+                <artifactId>springfox-swagger2</artifactId>
+                <version>2.8.0</version>
+            </dependency>
+
+            <dependency>
+                <groupId>io.springfox</groupId>
+                <artifactId>springfox-swagger-ui</artifactId>
+                <version>2.8.0</version>
+            </dependency>
         </dependencies>
     </dependencyManagement>