Browse Source

引入swagger包

csg6 5 months ago
parent
commit
bd047955c0
6 changed files with 31 additions and 16 deletions
  1. 4 2
      ruoyi-admin/pom.xml
  2. 16 5
      ruoyi-common/pom.xml
  3. 4 1
      ruoyi-generator/pom.xml
  4. 0 6
      ruoyi-postcheck/pom.xml
  5. 6 1
      ruoyi-quartz/pom.xml
  6. 1 1
      ruoyi-system/pom.xml

+ 4 - 2
ruoyi-admin/pom.xml

@@ -25,18 +25,20 @@
25
             <optional>true</optional> <!-- 表示依赖不会传递 -->
25
             <optional>true</optional> <!-- 表示依赖不会传递 -->
26
         </dependency>
26
         </dependency>
27
 
27
 
28
-        <!-- swagger3-->
28
+        <!-- swagger3
29
         <dependency>
29
         <dependency>
30
             <groupId>io.springfox</groupId>
30
             <groupId>io.springfox</groupId>
31
             <artifactId>springfox-boot-starter</artifactId>
31
             <artifactId>springfox-boot-starter</artifactId>
32
         </dependency>
32
         </dependency>
33
+        -->
33
 
34
 
34
-        <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
35
+        <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本
35
         <dependency>
36
         <dependency>
36
             <groupId>io.swagger</groupId>
37
             <groupId>io.swagger</groupId>
37
             <artifactId>swagger-models</artifactId>
38
             <artifactId>swagger-models</artifactId>
38
             <version>1.6.2</version>
39
             <version>1.6.2</version>
39
         </dependency>
40
         </dependency>
41
+        -->
40
 
42
 
41
          <!--
43
          <!--
42
          Mysql驱动包
44
          Mysql驱动包

+ 16 - 5
ruoyi-common/pom.xml

@@ -14,13 +14,24 @@
14
     <description>
14
     <description>
15
         common通用工具
15
         common通用工具
16
     </description>
16
     </description>
17
-    <!--
18
-    <properties>
19
-        <spring-security.version>5.7.12</spring-security.version>
20
-    </properties>
21
-    -->
22
 
17
 
23
     <dependencies>
18
     <dependencies>
19
+
20
+
21
+        <!-- swagger3 -->
22
+        <dependency>
23
+            <groupId>io.springfox</groupId>
24
+            <artifactId>springfox-boot-starter</artifactId>
25
+        </dependency>
26
+
27
+        <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
28
+        <dependency>
29
+            <groupId>io.swagger</groupId>
30
+            <artifactId>swagger-models</artifactId>
31
+            <version>1.6.2</version>
32
+        </dependency>
33
+
34
+
24
         <!-- mybatis plus-->
35
         <!-- mybatis plus-->
25
         <dependency>
36
         <dependency>
26
             <groupId>com.baomidou</groupId>
37
             <groupId>com.baomidou</groupId>

+ 4 - 1
ruoyi-generator/pom.xml

@@ -17,6 +17,9 @@
17
 
17
 
18
     <dependencies>
18
     <dependencies>
19
 
19
 
20
+
21
+
22
+
20
         <!--velocity代码生成使用模板 -->
23
         <!--velocity代码生成使用模板 -->
21
         <dependency>
24
         <dependency>
22
             <groupId>org.apache.velocity</groupId>
25
             <groupId>org.apache.velocity</groupId>
@@ -37,4 +40,4 @@
37
 
40
 
38
     </dependencies>
41
     </dependencies>
39
 
42
 
40
-</project>
43
+</project>

+ 0 - 6
ruoyi-postcheck/pom.xml

@@ -18,12 +18,6 @@
18
 
18
 
19
     <dependencies>
19
     <dependencies>
20
 
20
 
21
-        <!-- swagger3-->
22
-        <dependency>
23
-            <groupId>io.springfox</groupId>
24
-            <artifactId>springfox-boot-starter</artifactId>
25
-        </dependency>
26
-
27
         <!-- 通用工具-->
21
         <!-- 通用工具-->
28
         <dependency>
22
         <dependency>
29
             <groupId>com.ruoyi</groupId>
23
             <groupId>com.ruoyi</groupId>

+ 6 - 1
ruoyi-quartz/pom.xml

@@ -17,6 +17,9 @@
17
 
17
 
18
     <dependencies>
18
     <dependencies>
19
 
19
 
20
+
21
+
22
+
20
         <!-- 定时任务 -->
23
         <!-- 定时任务 -->
21
         <dependency>
24
         <dependency>
22
             <groupId>org.quartz-scheduler</groupId>
25
             <groupId>org.quartz-scheduler</groupId>
@@ -30,11 +33,13 @@
30
             </exclusions>
33
             </exclusions>
31
         </dependency>
34
         </dependency>
32
 
35
 
33
-        <!-- 通用工具-->
36
+        <!--
37
+        通用工具
34
         <dependency>
38
         <dependency>
35
             <groupId>com.ruoyi</groupId>
39
             <groupId>com.ruoyi</groupId>
36
             <artifactId>ruoyi-common</artifactId>
40
             <artifactId>ruoyi-common</artifactId>
37
         </dependency>
41
         </dependency>
42
+        -->
38
         <dependency>
43
         <dependency>
39
             <groupId>com.ruoyi</groupId>
44
             <groupId>com.ruoyi</groupId>
40
             <artifactId>ruoyi-system</artifactId>
45
             <artifactId>ruoyi-system</artifactId>

+ 1 - 1
ruoyi-system/pom.xml

@@ -25,4 +25,4 @@
25
 
25
 
26
     </dependencies>
26
     </dependencies>
27
 
27
 
28
-</project>
28
+</project>