From 56c8545eead4be737ebd32925e511d3c6f8071d9 Mon Sep 17 00:00:00 2001
From: 55007 <55007@maojian>
Date: Tue, 7 Jan 2025 18:18:51 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E7=BB=93=E6=9E=9C=E5=BA=94?=
=?UTF-8?q?=E7=94=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.classpath | 40 +
.gitignore | 4 +
.project | 23 +
README.md | 1 +
pom.xml | 235 ++++++
result_assembly.iml | 23 +
src/main/java/com/bfd/assemble/Application.java | 25 +
.../java/com/bfd/assemble/cache/ConfigCache.java | 35 +
.../assemble/controller/BuildReusltController.java | 42 +
.../java/com/bfd/assemble/entity/Constants.java | 147 ++++
.../java/com/bfd/assemble/handler/MainHandler.java | 112 +++
.../bfd/assemble/process/BuildReustPorcess.java | 100 +++
.../bfd/assemble/service/BuildReusltService.java | 16 +
.../service/impl/BuildReusltServiceImpl.java | 51 ++
src/main/java/com/bfd/assemble/utils/DataUtil.java | 63 ++
src/main/java/com/bfd/assemble/utils/DateUtil.java | 177 ++++
.../java/com/bfd/assemble/utils/DownLoadUtil.java | 906 +++++++++++++++++++++
.../com/bfd/assemble/utils/EncryptionUtil.java | 27 +
src/main/java/com/bfd/assemble/utils/FileUtil.java | 36 +
src/main/java/com/bfd/assemble/utils/JsonUtil.java | 32 +
.../java/com/bfd/assemble/utils/OtherUtils.java | 33 +
.../java/com/bfd/assemble/utils/QueueUtil.java | 18 +
.../com/bfd/assemble/utils/SpringBootKafka.java | 46 ++
.../com/bfd/assemble/utils/ThrowMessageUtil.java | 23 +
src/main/resources/application.yml | 86 ++
src/main/resources/logback-spring.xml | 36 +
src/test/java/com/bfd/AppTest.java | 20 +
27 files changed, 2357 insertions(+)
create mode 100644 .classpath
create mode 100644 .gitignore
create mode 100644 .project
create mode 100644 README.md
create mode 100644 pom.xml
create mode 100644 result_assembly.iml
create mode 100644 src/main/java/com/bfd/assemble/Application.java
create mode 100644 src/main/java/com/bfd/assemble/cache/ConfigCache.java
create mode 100644 src/main/java/com/bfd/assemble/controller/BuildReusltController.java
create mode 100644 src/main/java/com/bfd/assemble/entity/Constants.java
create mode 100644 src/main/java/com/bfd/assemble/handler/MainHandler.java
create mode 100644 src/main/java/com/bfd/assemble/process/BuildReustPorcess.java
create mode 100644 src/main/java/com/bfd/assemble/service/BuildReusltService.java
create mode 100644 src/main/java/com/bfd/assemble/service/impl/BuildReusltServiceImpl.java
create mode 100644 src/main/java/com/bfd/assemble/utils/DataUtil.java
create mode 100644 src/main/java/com/bfd/assemble/utils/DateUtil.java
create mode 100644 src/main/java/com/bfd/assemble/utils/DownLoadUtil.java
create mode 100644 src/main/java/com/bfd/assemble/utils/EncryptionUtil.java
create mode 100644 src/main/java/com/bfd/assemble/utils/FileUtil.java
create mode 100644 src/main/java/com/bfd/assemble/utils/JsonUtil.java
create mode 100644 src/main/java/com/bfd/assemble/utils/OtherUtils.java
create mode 100644 src/main/java/com/bfd/assemble/utils/QueueUtil.java
create mode 100644 src/main/java/com/bfd/assemble/utils/SpringBootKafka.java
create mode 100644 src/main/java/com/bfd/assemble/utils/ThrowMessageUtil.java
create mode 100644 src/main/resources/application.yml
create mode 100644 src/main/resources/logback-spring.xml
create mode 100644 src/test/java/com/bfd/AppTest.java
diff --git a/.classpath b/.classpath
new file mode 100644
index 0000000..1a0a8d2
--- /dev/null
+++ b/.classpath
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..97be0c6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/target/
+/.idea/
+/logs/
+/.settings/
diff --git a/.project b/.project
new file mode 100644
index 0000000..7a00cc3
--- /dev/null
+++ b/.project
@@ -0,0 +1,23 @@
+
+
+ result_assembly
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..6fcde55
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+结果组装整合应用
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..869bea4
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,235 @@
+
+
+
+ 4.0.0
+
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.2.4.RELEASE
+
+
+ com.bfd
+ result_assembly
+ 0.0.1-SNAPSHOT
+
+ result_assembly
+
+ http://www.example.com
+
+
+ UTF-8
+ 1.8
+ 1.8
+
+
+
+
+ junit
+ junit
+ 4.11
+ test
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ com.google.code.gson
+ gson
+ 2.8.8
+
+
+ org.springframework.boot
+ spring-boot-test
+
+
+
+ org.springframework
+ spring-test
+ 5.0.10.RELEASE
+ test
+
+
+
+ de.codecentric
+ spring-boot-admin-starter-client
+ 2.2.4
+
+
+ commons-io
+ commons-io
+ 1.4
+
+
+ com.alibaba
+ fastjson
+ 2.0.17
+
+
+
+ com.mchange
+ c3p0
+ 0.9.5.5
+
+
+ mysql
+ mysql-connector-java
+ 8.0.29
+
+
+
+ com.squareup.okhttp3
+ okhttp
+ 4.9.3
+
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.3
+
+
+ commons-lang
+ commons-lang
+ 2.6
+
+
+
+ org.jetbrains.kotlin
+ kotlin-reflect
+ 1.6.21
+ runtime
+
+
+
+ org.jsoup
+ jsoup
+ 1.8.1
+
+
+
+ org.projectlombok
+ lombok
+
+
+ org.springframework.kafka
+ spring-kafka
+
+
+
+
+ cn.hutool
+ hutool-all
+ 5.8.5
+
+
+ junit
+ junit
+
+
+
+ p6spy
+ p6spy
+ 3.9.0
+
+
+
+ commons-collections
+ commons-collections
+ 3.2.2
+
+
+
+
+
+
+
+
+
+ maven-clean-plugin
+ 3.1.0
+
+
+
+ maven-resources-plugin
+ 3.0.2
+
+
+ maven-compiler-plugin
+ 3.8.0
+
+
+ maven-surefire-plugin
+ 2.22.1
+
+
+ maven-jar-plugin
+ 3.0.2
+
+
+ maven-install-plugin
+ 2.5.2
+
+
+ maven-deploy-plugin
+ 2.8.2
+
+
+
+ maven-site-plugin
+ 3.7.1
+
+
+ maven-project-info-reports-plugin
+ 3.0.0
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+ com.bfd.assemble.Application
+ ZIP
+
+
+ ${project.groupId}
+ ${project.artifactId}
+
+
+
+
+
+
+ repackage
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+ 3.1.1
+
+
+ copy
+ package
+
+ copy-dependencies
+
+
+ jar
+ jar
+ runtime
+ ${project.build.directory}/libs
+
+
+
+
+
+
+
+
diff --git a/result_assembly.iml b/result_assembly.iml
new file mode 100644
index 0000000..e8cf8de
--- /dev/null
+++ b/result_assembly.iml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/com/bfd/assemble/Application.java b/src/main/java/com/bfd/assemble/Application.java
new file mode 100644
index 0000000..b6b936b
--- /dev/null
+++ b/src/main/java/com/bfd/assemble/Application.java
@@ -0,0 +1,25 @@
+package com.bfd.assemble;
+
+
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.kafka.annotation.EnableKafka;
+import org.springframework.scheduling.annotation.EnableScheduling;
+
+/**
+ * 主入口
+ *
+ * @author jian.mao
+ * @date 2023年7月4日
+ * @description
+ */
+@SpringBootApplication
+@EnableScheduling
+@EnableKafka
+public class Application {
+
+ public static void main(String[] args) {
+ SpringApplication.run(Application.class, args);
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/bfd/assemble/cache/ConfigCache.java b/src/main/java/com/bfd/assemble/cache/ConfigCache.java
new file mode 100644
index 0000000..f3dedca
--- /dev/null
+++ b/src/main/java/com/bfd/assemble/cache/ConfigCache.java
@@ -0,0 +1,35 @@
+package com.bfd.assemble.cache;
+
+import lombok.extern.slf4j.Slf4j;
+
+import java.util.Map;
+import java.util.concurrent.LinkedBlockingDeque;
+
+/**
+ * @author jian.mao
+ * @date 2022年11月11日
+ * @description 静态变量类
+ */
+@Slf4j
+public class ConfigCache {
+
+ /**启动条件**/
+ public static boolean isStart = true;
+ /*****任务队列*****/
+ public static LinkedBlockingDeque