From caa2668eef5a4a84bb5880177e2aa3141f85bc8e Mon Sep 17 00:00:00 2001
From: Shikong <919411476@qq.com>
Date: Thu, 20 Apr 2023 17:00:15 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20springboot=20=E5=92=8C=20s?=
=?UTF-8?q?pringcloud=20=E7=89=88=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/compiler.xml | 1 +
.idea/encodings.xml | 2 ++
kafka-01/pom.xml | 21 +++++++++++++++++++
.../skcks/study/springcloud/kafka/Main.java | 7 +++++++
pom.xml | 5 +++--
.../src/main/resources/application.yml | 4 ++--
.../project01/ApplicationTest.java | 4 ++--
.../src/main/resources/application.yml | 2 +-
8 files changed, 39 insertions(+), 7 deletions(-)
create mode 100644 kafka-01/pom.xml
create mode 100644 kafka-01/src/main/java/cn/skcks/study/springcloud/kafka/Main.java
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index 2fd39f8..fab2e17 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -8,6 +8,7 @@
+
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
index 4a50c20..844a9ab 100644
--- a/.idea/encodings.xml
+++ b/.idea/encodings.xml
@@ -1,6 +1,8 @@
+
+
diff --git a/kafka-01/pom.xml b/kafka-01/pom.xml
new file mode 100644
index 0000000..6823afa
--- /dev/null
+++ b/kafka-01/pom.xml
@@ -0,0 +1,21 @@
+
+
+ 4.0.0
+
+ cn.skcks.study.springcloud
+ spring-cloud-study
+ 1.0-SNAPSHOT
+
+
+ cn.skcks.study.springcloud.kafka
+ kafka-01
+
+
+ 8
+ 8
+ UTF-8
+
+
+
diff --git a/kafka-01/src/main/java/cn/skcks/study/springcloud/kafka/Main.java b/kafka-01/src/main/java/cn/skcks/study/springcloud/kafka/Main.java
new file mode 100644
index 0000000..a95348b
--- /dev/null
+++ b/kafka-01/src/main/java/cn/skcks/study/springcloud/kafka/Main.java
@@ -0,0 +1,7 @@
+package cn.skcks.study.springcloud.kafka;
+
+public class Main {
+ public static void main(String[] args) {
+ System.out.println("Hello world!");
+ }
+}
diff --git a/pom.xml b/pom.xml
index 2b657b8..319aecb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,12 +14,13 @@
project-01
+ kafka-01
1.8
- 2.4.4
- 2020.0.2
+ 2.7.10
+ 2021.0.6
2021.1
1.18.26
diff --git a/project-01/consumer/src/main/resources/application.yml b/project-01/consumer/src/main/resources/application.yml
index 4112ca8..825b080 100644
--- a/project-01/consumer/src/main/resources/application.yml
+++ b/project-01/consumer/src/main/resources/application.yml
@@ -8,9 +8,9 @@ spring:
cloud:
nacos:
discovery:
- server-addr: 10.10.10.20:8848
+ server-addr: 10.10.10.200:8848
seaweed-fs:
- url: http://10.10.10.100:18333
+ url: http://10.10.10.200:18333
access-key: fb64fcb7bbe24883b2b49c1e8d1bd02e
secret-key: b40afae726aa7e2783e47b9af60f6c6f
diff --git a/project-01/consumer/src/test/java/cn/skcks/study/springcloud/project01/ApplicationTest.java b/project-01/consumer/src/test/java/cn/skcks/study/springcloud/project01/ApplicationTest.java
index 041eda1..64e94af 100644
--- a/project-01/consumer/src/test/java/cn/skcks/study/springcloud/project01/ApplicationTest.java
+++ b/project-01/consumer/src/test/java/cn/skcks/study/springcloud/project01/ApplicationTest.java
@@ -58,7 +58,7 @@ public class ApplicationTest {
@Test
void upload() throws Exception{
checkBucket();
- String f = "D:\\Temp\\video.zip";
+ String f = "D:\\Temp\\temp.zip";
Path path = Paths.get(f);
try(InputStream is = Files.newInputStream(path)){
mc.putObject(PutObjectArgs.builder()
@@ -73,7 +73,7 @@ public class ApplicationTest {
@Test
void uploadZipFile() throws Exception {
checkBucket();
- String path = "D:\\Temp\\video.zip";
+ String path = "D:\\Temp\\temp.zip";
try(ZipFile zipFile = new ZipFile(path)){
ZipInputStream zipInputStream = new ZipInputStream(new BufferedInputStream(Files.newInputStream(Paths.get(path))));
ZipEntry zipEntry;
diff --git a/project-01/provider/src/main/resources/application.yml b/project-01/provider/src/main/resources/application.yml
index c907ecf..d94ce44 100644
--- a/project-01/provider/src/main/resources/application.yml
+++ b/project-01/provider/src/main/resources/application.yml
@@ -7,4 +7,4 @@ spring:
cloud:
nacos:
discovery:
- server-addr: 10.10.10.20:8848
+ server-addr: 10.10.10.200:8848