Browse Source

去掉swagger knife4j依赖

张同佳 6 months ago
parent
commit
670b2f41af

+ 1 - 5
api/load-transfer-mq-api/src/main/java/com/hdkj/lt/modle/dto/voltageLimitViolation/AreaVoltViolationDTO.java

@@ -1,11 +1,7 @@
 package com.hdkj.lt.modle.dto.voltageLimitViolation;
 
 import com.alibaba.fastjson.annotation.JSONField;
-import com.fasterxml.jackson.annotation.JsonFormat;
 import lombok.Data;
-import net.bytebuddy.implementation.bytecode.constant.DefaultValue;
-
-import java.util.List;
 
 /**
  * AreaVoltViolation-成片电压越限统计指标和详情
@@ -197,4 +193,4 @@ public class AreaVoltViolationDTO {
      */
     @JSONField(defaultValue = "0")
     private Integer severeUndervoltLvcustomerCount;
-}
+}

+ 5 - 5
api/pom.xml

@@ -26,14 +26,14 @@
             <groupId>org.springframework.cloud</groupId>
             <artifactId>spring-cloud-starter-openfeign</artifactId>
         </dependency>
-        <dependency>
-            <groupId>com.github.xiaoymin</groupId>
-            <artifactId>knife4j-spring-boot-starter</artifactId>
-        </dependency>
+<!--        <dependency>-->
+<!--            <groupId>com.github.xiaoymin</groupId>-->
+<!--            <artifactId>knife4j-spring-boot-starter</artifactId>-->
+<!--        </dependency>-->
         <dependency>
             <groupId>com.fasterxml.jackson.core</groupId>
             <artifactId>jackson-databind</artifactId>
         </dependency>
     </dependencies>
 
-</project>
+</project>

+ 4 - 4
common/common-core/pom.xml

@@ -149,10 +149,10 @@
 			<groupId>com.alibaba.fastjson2</groupId>
 			<artifactId>fastjson2</artifactId>
 		</dependency>
-		<dependency>
-			<groupId>com.github.xiaoymin</groupId>
-			<artifactId>knife4j-spring-boot-starter</artifactId>
-		</dependency>
+<!--		<dependency>-->
+<!--			<groupId>com.github.xiaoymin</groupId>-->
+<!--			<artifactId>knife4j-spring-boot-starter</artifactId>-->
+<!--		</dependency>-->
 	</dependencies>
 
 	<build>

+ 2 - 2
common/ruoyi-common-swagger/pom.xml

@@ -8,9 +8,9 @@
         <version>${revision}</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
-    
+
     <artifactId>ruoyi-common-swagger</artifactId>
-	
+
     <description>
         ruoyi-common-swagger系统接口
     </description>

+ 6 - 5
pom.xml

@@ -129,11 +129,11 @@
                 <artifactId>ruoyi-common-log</artifactId>
                 <version>${revision}</version>
             </dependency>
-            <dependency>
-                <groupId>com.hdkj</groupId>
-                <artifactId>ruoyi-common-swagger</artifactId>
-                <version>${revision}</version>
-            </dependency>
+<!--            <dependency>-->
+<!--                <groupId>com.hdkj</groupId>-->
+<!--                <artifactId>ruoyi-common-swagger</artifactId>-->
+<!--                <version>${revision}</version>-->
+<!--            </dependency>-->
             <dependency>
                 <groupId>org.springframework.cloud</groupId>
                 <artifactId>spring-cloud-dependencies</artifactId>
@@ -256,6 +256,7 @@
                 <artifactId>knife4j-spring-boot-starter</artifactId>
                 <version>2.0.9</version>
             </dependency>
+
             <dependency>
                 <groupId>commons-fileupload</groupId>
                 <artifactId>commons-fileupload</artifactId>

+ 1 - 2
services/load-transfer-bf/src/main/java/com/hdkj/lt/bf/LoadTransferBFApplication.java

@@ -7,7 +7,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cache.annotation.EnableCaching;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 import org.springframework.cloud.openfeign.EnableFeignClients;
-import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
 
 /**
  * @Description:
@@ -20,7 +19,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
 @SpringBootApplication(scanBasePackages = {SystemGlobalConstant.BIZMS_BASE_PACKAGE})
 @MapperScan(basePackages = {SystemGlobalConstant.BIZMS_DAO_PACKAGE, SystemGlobalConstant.BIZMS_MAPPER_PACKAGE})
 @EnableCaching
-@EnableSwagger2WebMvc
+//@EnableSwagger2WebMvc
 public class LoadTransferBFApplication {
 
     public static void main(String[] args) {

+ 1 - 2
services/load-transfer-io/src/main/java/com/hdkj/lt/io/LoadTransferIOApplication.java

@@ -7,7 +7,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cache.annotation.EnableCaching;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 import org.springframework.cloud.openfeign.EnableFeignClients;
-import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
 
 /**
  * @Description:
@@ -20,7 +19,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
 @SpringBootApplication(scanBasePackages = {SystemGlobalConstant.BIZMS_BASE_PACKAGE})
 @MapperScan(basePackages = {SystemGlobalConstant.HUSSAR_DAO_PACKAGE, SystemGlobalConstant.BIZMS_DAO_PACKAGE})
 @EnableCaching
-@EnableSwagger2WebMvc
+//@EnableSwagger2WebMvc
 public class LoadTransferIOApplication {
 
     public static void main(String[] args) {

+ 1 - 2
services/load-transfer-mq/src/main/java/com/hdkj/lt/mq/LoadTransferMQApplication.java

@@ -7,7 +7,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cache.annotation.EnableCaching;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 import org.springframework.cloud.openfeign.EnableFeignClients;
-import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
 
 /**
  * @Description:
@@ -20,7 +19,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
 @SpringBootApplication(scanBasePackages = {SystemGlobalConstant.HUSSAR_BASE_PACKAGE, SystemGlobalConstant.BIZMS_BASE_PACKAGE})
 @MapperScan(basePackages = {SystemGlobalConstant.HUSSAR_DAO_PACKAGE, SystemGlobalConstant.BIZMS_DAO_PACKAGE, SystemGlobalConstant.BIZMS_MAPPER_PACKAGE})
 @EnableCaching
-@EnableSwagger2WebMvc
+//@EnableSwagger2WebMvc
 public class LoadTransferMQApplication {
 
     public static void main(String[] args) {

+ 1 - 2
services/load-transfer-si/src/main/java/com/hdkj/lt/si/LoadTransferSIApplication.java

@@ -7,7 +7,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cache.annotation.EnableCaching;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 import org.springframework.cloud.openfeign.EnableFeignClients;
-import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
 
 /**
  * @Description:
@@ -20,7 +19,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
 @SpringBootApplication(scanBasePackages = {SystemGlobalConstant.HUSSAR_BASE_PACKAGE, SystemGlobalConstant.BIZMS_BASE_PACKAGE})
 @MapperScan(basePackages = {SystemGlobalConstant.HUSSAR_DAO_PACKAGE, SystemGlobalConstant.BIZMS_DAO_PACKAGE})
 @EnableCaching
-@EnableSwagger2WebMvc
+//@EnableSwagger2WebMvc
 public class LoadTransferSIApplication {
 
     public static void main(String[] args) {

+ 4 - 4
services/ruoyi-job/pom.xml

@@ -37,10 +37,10 @@
         </dependency>
 
         <!-- RuoYi Common Swagger -->
-        <dependency>
-            <groupId>com.hdkj</groupId>
-            <artifactId>ruoyi-common-swagger</artifactId>
-        </dependency>
+<!--        <dependency>-->
+<!--            <groupId>com.hdkj</groupId>-->
+<!--            <artifactId>ruoyi-common-swagger</artifactId>-->
+<!--        </dependency>-->
 
 <!--        <dependency>-->
 <!--            <groupId>com.github.pagehelper</groupId>-->