Selaa lähdekoodia

【情报二期】数据域服务 - jar包异常问题调试

fangtasyj 1 kuukausi sitten
vanhempi
sitoutus
9ea7ae823d
2 muutettua tiedostoa jossa 11 lisäystä ja 197 poistoa
  1. 9 196
      pom.xml
  2. 2 1
      src/main/java/com/hhwy/qbeqsjy/kafka/service/ConsumeService.java

+ 9 - 196
pom.xml

@@ -36,144 +36,108 @@
       <groupId>org.locationtech.jts</groupId>
       <artifactId>jts-core</artifactId>
       <version>1.19.0</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/jts-core-1.19.0.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot</artifactId>
       <version>2.5.15</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-boot-2.5.15.jar</systemPath>
     </dependency>
 
     <dependency>
-      <groupId>org.springframewor.boot</groupId>
+      <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-autoconfigure</artifactId>
       <version>2.5.15</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-boot-autoconfigure-2.5.15.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-json</artifactId>
       <version>2.5.15</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-boot-starter-json-2.5.15.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-logging</artifactId>
       <version>2.5.15</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-boot-starter-logging-2.5.15.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-tomcat</artifactId>
       <version>2.5.15</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-boot-starter-tomcat-2.5.15.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-aop</artifactId>
       <version>5.3.27</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-aop-5.3.27.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
       <version>5.3.27</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-beans-5.3.27.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
       <version>5.3.27</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-core-5.3.27.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
       <version>5.3.27</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-context-5.3.27.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context-support</artifactId>
       <version>5.3.33</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-context-support-5.3.33.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
       <version>5.3.27</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-jdbc-5.3.27.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-expression</artifactId>
       <version>5.3.27</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-expression-5.3.27.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jcl</artifactId>
       <version>5.3.27</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-jcl-5.3.27.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-oxm</artifactId>
       <version>5.3.33</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-oxm-5.3.33.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-tx</artifactId>
       <version>5.3.27</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-tx-5.3.27.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-web</artifactId>
       <version>5.3.27</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-web-5.3.27.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
       <version>5.3.27</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-webmvc-5.3.27.jar</systemPath>
     </dependency>
 
 
@@ -181,16 +145,12 @@
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-validation</artifactId>
       <version>2.5.15</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-boot-starter-validation-2.5.15.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter</artifactId>
       <version>2.5.15</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-boot-starter-2.5.15.jar</systemPath>
     </dependency>
 
     <!-- Spring Web -->
@@ -198,23 +158,18 @@
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-web</artifactId>
       <version>2.5.15</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-boot-starter-web-2.5.15.jar</systemPath>
-      <exclusions>
+      <!--<exclusions>
         <exclusion>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-starter-tomcat</artifactId>
         </exclusion>
-      </exclusions>
+      </exclusions>-->
     </dependency>
 
     <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-jdbc</artifactId>
       <version>2.5.15</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/spring-boot-starter-jdbc-2.5.15.jar</systemPath>
-
     </dependency>
 
     <!-- 阿里数据库连接池 -->
@@ -222,8 +177,6 @@
       <groupId>com.alibaba</groupId>
       <artifactId>druid-spring-boot-starter</artifactId>
       <version>${druid.version}</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/druid-spring-boot-starter-1.2.23.jar</systemPath>
     </dependency>
 
     <!-- 解析客户端操作系统、浏览器等 -->
@@ -231,8 +184,6 @@
       <groupId>eu.bitwalker</groupId>
       <artifactId>UserAgentUtils</artifactId>
       <version>${bitwalker.version}</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/UserAgentUtils-1.21.jar</systemPath>
     </dependency>
 
     <!-- 获取系统信息 -->
@@ -240,48 +191,36 @@
       <groupId>com.github.oshi</groupId>
       <artifactId>oshi-core</artifactId>
       <version>${oshi.version}</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/oshi-core-6.6.3.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-api</artifactId>
       <version>1.7.32</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/slf4j-api-1.7.32.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.apache.kafka</groupId>
       <artifactId>kafka-clients</artifactId>
       <version>1.1.0</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/kafka-clients-1.1.0.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.apache.kafka</groupId>
       <artifactId>kafka-streams</artifactId>
       <version>1.1.0</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/kafka-streams-1.1.0.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.apache.kafka</groupId>
       <artifactId>kafka-streams-examples</artifactId>
       <version>1.1.0</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/kafka-streams-examples-1.1.0.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.apache.httpcomponents</groupId>
       <artifactId>httpcore</artifactId>
       <version>4.4.10</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/httpcore-4.4.10.jar</systemPath>
     </dependency>
 
     <!-- io常用工具类 -->
@@ -289,16 +228,6 @@
       <groupId>commons-io</groupId>
       <artifactId>commons-io</artifactId>
       <version>${commons.io.version}</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/commons-io-2.13.0.jar</systemPath>
-    </dependency>
-
-    <dependency>
-      <groupId>commons-lang3</groupId>
-      <artifactId>commons-lang3</artifactId>
-      <version>3.11</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/commons-lang3-3.11.jar</systemPath>
     </dependency>
 
     <!-- excel工具 -->
@@ -306,16 +235,12 @@
       <groupId>org.apache.poi</groupId>
       <artifactId>poi</artifactId>
       <version>${poi.version}</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/poi-4.1.2.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.apache.poi</groupId>
       <artifactId>poi-ooxml</artifactId>
       <version>${poi.version}</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/poi-ooxml-4.1.2.jar</systemPath>
     </dependency>
 
     <!-- velocity代码生成使用模板 -->
@@ -323,8 +248,6 @@
       <groupId>org.apache.velocity</groupId>
       <artifactId>velocity-engine-core</artifactId>
       <version>${velocity.version}</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/velocity-engine-core-2.3.jar</systemPath>
     </dependency>
 
     <!-- 阿里JSON解析器 -->
@@ -332,8 +255,6 @@
       <groupId>com.alibaba.fastjson2</groupId>
       <artifactId>fastjson2</artifactId>
       <version>${fastjson.version}</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/fastjson2-2.0.53.jar</systemPath>
     </dependency>
 
     <!-- Token生成与解析-->
@@ -341,8 +262,6 @@
       <groupId>io.jsonwebtoken</groupId>
       <artifactId>jjwt</artifactId>
       <version>${jwt.version}</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/jjwt-0.9.1.jar</systemPath>
     </dependency>
 
     <!-- 验证码 -->
@@ -350,16 +269,12 @@
       <groupId>pro.fessional</groupId>
       <artifactId>kaptcha</artifactId>
       <version>${kaptcha.version}</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/kaptcha-2.3.3.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>cn.hutool</groupId>
       <artifactId>hutool-all</artifactId>
       <version>5.8.16</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/hutool-all-5.8.16.jar</systemPath>
     </dependency>
 
 
@@ -367,8 +282,6 @@
       <groupId>com.alibaba</groupId>
       <artifactId>easyexcel</artifactId>
       <version>3.3.2</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/easyexcel-3.3.2.jar</systemPath>
     </dependency>
 
     <!-- Mysql驱动包 -->
@@ -376,8 +289,6 @@
       <groupId>mysql</groupId>
       <artifactId>mysql-connector-java</artifactId>
       <version>8.0.30</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/mysql-connector-java-8.0.30.jar</systemPath>
     </dependency>
 
     <dependency>
@@ -391,24 +302,18 @@
       <groupId>org.jsoup</groupId>
       <artifactId>jsoup</artifactId>
       <version>1.15.1</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/jsoup-1.15.1.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.apache.httpcomponents</groupId>
       <artifactId>httpclient</artifactId>
       <version>4.5.6</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/httpclient-4.5.6.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>com.alibaba</groupId>
       <artifactId>fastjson</artifactId>
       <version>1.2.31</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/fastjson-1.2.31.jar</systemPath>
     </dependency>
 
     <dependency>
@@ -424,80 +329,60 @@
       <groupId>com.fasterxml.jackson.core</groupId>
       <artifactId>jackson-databind</artifactId>
       <version>${jackson.version}</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/jackson-databind-2.12.7.jar</systemPath>
     </dependency>
     <!-- Jackson Annotations -->
     <dependency>
       <groupId>com.fasterxml.jackson.core</groupId>
       <artifactId>jackson-annotations</artifactId>
       <version>${jackson.version}</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/jackson-annotations-2.12.7.jar</systemPath>
     </dependency>
     <!-- Jackson Core -->
     <dependency>
       <groupId>com.fasterxml.jackson.core</groupId>
       <artifactId>jackson-core</artifactId>
       <version>${jackson.version}</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/jackson-core-2.12.7.jar</systemPath>
     </dependency>
     <!-- Jackson JSR310 Data Types -->
     <dependency>
       <groupId>com.fasterxml.jackson.datatype</groupId>
       <artifactId>jackson-datatype-jsr310</artifactId>
       <version>${jackson.version}</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/jackson-datatype-jsr310-2.12.7.jar</systemPath>
     </dependency>
 
-    <dependency>
+    <!--<dependency>
       <groupId>org.apache.tomcat</groupId>
       <artifactId>tomcat-embed-core</artifactId>
       <version>9.0.75</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/tomcat-embed-core-9.0.75.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.apache.tomcat</groupId>
       <artifactId>tomcat-embed-el</artifactId>
       <version>9.0.75</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/tomcat-embed-el-9.0.75.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.apache.tomcat</groupId>
       <artifactId>tomcat-embed-websocket</artifactId>
       <version>9.0.75</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/tomcat-embed-websocket-9.0.75.jar</systemPath>
-    </dependency>
+    </dependency>-->
 
     <dependency>
       <groupId>org.apache.xmlbeans</groupId>
       <artifactId>xmlbeans</artifactId>
       <version>3.1.0</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/xmlbeans-3.1.0.jar</systemPath>
     </dependency>
 
-    <dependency>
+    <!--<dependency>
       <groupId>org.yaml.snakeyaml</groupId>
       <artifactId>snakeyaml</artifactId>
       <version>1.28</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/snakeyaml-1.28.jar</systemPath>
-    </dependency>
+    </dependency>-->
 
     <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>servlet-api</artifactId>
       <version>2.5</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/servlet-api-2.5.jar</systemPath>
     </dependency>
 
     <dependency>
@@ -510,117 +395,88 @@
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-api</artifactId>
       <version>2.17.2</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/log4j-api-2.17.2.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-to-slf4j</artifactId>
       <version>2.17.2</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/log4j-to-slf4j-2.17.2.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.glassfish.jaxb</groupId>
       <artifactId>txw2</artifactId>
       <version>2.3.2</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/txw2-2.3.2.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.jvnet.staxex</groupId>
       <artifactId>stax-ex</artifactId>
       <version>1.8.1</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/stax-ex-1.8.1.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>com.alibaba</groupId>
       <artifactId>druid</artifactId>
       <version>1.2.23</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/druid-1.2.23.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>commons-logging</groupId>
       <artifactId>commons-logging</artifactId>
       <version>1.2</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/commons-logging-1.2.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.apache.commons</groupId>
       <artifactId>commons-collections4</artifactId>
       <version>4.4</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/commons-collections4-4.4.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>com.alibaba</groupId>
       <artifactId>easyexcel-core</artifactId>
       <version>3.3.2</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/easyexcel-core-3.3.2.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>com.alibaba</groupId>
       <artifactId>easyexcel-support</artifactId>
       <version>3.3.2</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/easyexcel-support-3.3.2.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.hibernate.validator</groupId>
       <artifactId>hibernate-validator</artifactId>
       <version>6.2.5.Final</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/hibernate-validator-6.2.5.Final.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>org.jboss.logging</groupId>
       <artifactId>jboss-logging</artifactId>
       <version>3.4.1.Final</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/jboss-logging-3.4.1.Final.jar</systemPath>
     </dependency>
 
-    <dependency>
+    <!--<dependency>
       <groupId>ch.qos.logback</groupId>
       <artifactId>logback-classic</artifactId>
       <version>1.2.12</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/logback-classic-1.2.12.jar</systemPath>
     </dependency>
 
     <dependency>
       <groupId>ch.qos.logback</groupId>
       <artifactId>logback-core</artifactId>
       <version>1.2.12</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/logback-core-1.2.12.jar</systemPath>
-    </dependency>
+    </dependency>-->
 
     <dependency>
       <groupId>org.postgresql</groupId>
       <artifactId>postgresql</artifactId>
       <version>42.7.5</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/lib/postgresql-42.7.5.jar</systemPath>
     </dependency>
 
   </dependencies>
 
-
   <build>
     <plugins>
       <plugin>
@@ -651,47 +507,4 @@
     <finalName>${project.artifactId}</finalName>
   </build>
 
-  <!--<build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-war-plugin</artifactId>
-        <version>3.1.0</version>
-      </plugin>
-      &lt;!&ndash;<plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>3.1</version>
-        <configuration>
-          <source>${java.version}</source>
-          <target>${java.version}</target>
-          <encoding>${project.build.sourceEncoding}</encoding>
-        </configuration>
-      </plugin>&ndash;&gt;
-      &lt;!&ndash;<plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <version>3.1.2</version>
-        <configuration>
-          <archive>
-            <manifest>
-              <mainClass>com.hhwy.QBEQSJYApplication</mainClass>
-            </manifest>
-          </archive>
-        </configuration>
-      </plugin>&ndash;&gt;
-
-      &lt;!&ndash; spring-boot-maven-plugin &ndash;&gt;
-      &lt;!&ndash;<plugin>
-        <groupId>org.springframework.boot</groupId>
-        <artifactId>spring-boot-maven-plugin</artifactId>
-        <version>3.4.4</version>
-        <configuration>
-          <mainClass>com.hhwy.QBEQSJYApplication</mainClass>
-          <skip>false</skip>
-        </configuration>
-      </plugin>&ndash;&gt;
-    </plugins>
-  </build>-->
-
 </project>

+ 2 - 1
src/main/java/com/hhwy/qbeqsjy/kafka/service/ConsumeService.java

@@ -86,7 +86,8 @@ public class ConsumeService implements ApplicationListener<ContextRefreshedEvent
         executor.execute(() -> {
             if (contextRefreshedEvent.getApplicationContext().getParent() == null) {
                 try {
-                    this.dataConsume();
+//                    this.dataConsume();
+                    log.info("调用数据消费方法了......");
                 } catch (Exception e) {
                     log.error("【QBEQSJYCTRL】 数据处理服务启动异常", e);
                 }