From 51940769262c3dfc2b8f2d3bb3d31e270a4474c4 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期二, 10 九月 2024 09:50:56 +0800
Subject: [PATCH] 课程代码

---
 .gitignore                                                          |    1 
 xinquan-gateway/src/main/resources/bootstrap.yml                    |  127 ++++++++++++++
 xinquan-modules/xinquan-course/src/main/resources/bootstrap.yml     |   82 +++++++++
 xinquan-modules/xinquan-meditation/src/main/resources/bootstrap.yml |   82 +++++++++
 xinquan-modules/xinquan-system/src/main/resources/bootstrap.yml     |   82 +++++++++
 xinquan-modules/xinquan-user/src/main/resources/bootstrap.yml       |   82 +++++++++
 xinquan-auth/src/main/resources/bootstrap.yml                       |   82 +++++++++
 7 files changed, 537 insertions(+), 1 deletions(-)

diff --git a/.gitignore b/.gitignore
index 9482a02..97c05d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -40,7 +40,6 @@
 *.log
 *.xml.versionsBackup
 *.swp
-*.yml
 
 !*/build/*.java
 !*/build/*.html
diff --git a/xinquan-auth/src/main/resources/bootstrap.yml b/xinquan-auth/src/main/resources/bootstrap.yml
new file mode 100644
index 0000000..53e486b
--- /dev/null
+++ b/xinquan-auth/src/main/resources/bootstrap.yml
@@ -0,0 +1,82 @@
+# Spring
+spring: 
+  application:
+    # 应用名称
+    name: xinquan-auth
+  main:
+    allow-bean-definition-overriding: true
+  profiles:
+    # 环境配置
+    active: dev
+---
+spring:
+  config:
+    activate:
+      on-profile: dev
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: cb7a3ad3-9e06-4a70-85d6-a774a1e76295
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: cb7a3ad3-9e06-4a70-85d6-a774a1e76295
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+---
+spring:
+  config:
+    activate:
+      on-profile: prod
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: 3452d750-b08d-4485-a1e9-4fb0548f1fc2
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: 3452d750-b08d-4485-a1e9-4fb0548f1fc2
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+---
+spring:
+  config:
+    activate:
+      on-profile: test
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
\ No newline at end of file
diff --git a/xinquan-gateway/src/main/resources/bootstrap.yml b/xinquan-gateway/src/main/resources/bootstrap.yml
new file mode 100644
index 0000000..58389c9
--- /dev/null
+++ b/xinquan-gateway/src/main/resources/bootstrap.yml
@@ -0,0 +1,127 @@
+# Spring
+spring:
+  application:
+    # 应用名称
+    name: xinquan-auth
+  main:
+    allow-bean-definition-overriding: true
+  profiles:
+    # 环境配置
+    active: dev
+---
+spring:
+  config:
+    activate:
+      on-profile: dev
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: cb7a3ad3-9e06-4a70-85d6-a774a1e76295
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: cb7a3ad3-9e06-4a70-85d6-a774a1e76295
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+    sentinel:
+      # 取消控制台懒加载
+      eager: true
+      transport:
+        # 控制台地址
+        dashboard: 192.168.110.34:8718
+      # nacos配置持久化
+      datasource:
+        ds1:
+          nacos:
+            server-addr: 127.0.0.1:8848
+            dataId: sentinel-xinquan-gateway
+            groupId: DEFAULT_GROUP
+            data-type: json
+            rule-type: gw-flow
+---
+spring:
+  config:
+    activate:
+      on-profile: prod
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: c2f47d1c-6355-4a68-b357-7523d73b2d13
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: c2f47d1c-6355-4a68-b357-7523d73b2d13
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+    sentinel:
+      # 取消控制台懒加载
+      eager: true
+      transport:
+        # 控制台地址
+        dashboard: 122.9.150.46:8718
+      # nacos配置持久化
+      datasource:
+        ds1:
+          nacos:
+            server-addr: 127.0.0.1:8848
+            dataId: sentinel-xinquan-gateway
+            groupId: DEFAULT_GROUP
+            data-type: json
+            rule-type: gw-flow
+---
+spring:
+  config:
+    activate:
+      on-profile: test
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+    sentinel:
+      # 取消控制台懒加载
+      eager: true
+      transport:
+        # 控制台地址
+        dashboard: 139.9.236.40:8718
+      # nacos配置持久化
+      datasource:
+        ds1:
+          nacos:
+            server-addr: 127.0.0.1:8848
+            dataId: sentinel-xinquan-gateway
+            groupId: DEFAULT_GROUP
+            data-type: json
+            rule-type: gw-flow
\ No newline at end of file
diff --git a/xinquan-modules/xinquan-course/src/main/resources/bootstrap.yml b/xinquan-modules/xinquan-course/src/main/resources/bootstrap.yml
new file mode 100644
index 0000000..e6647fa
--- /dev/null
+++ b/xinquan-modules/xinquan-course/src/main/resources/bootstrap.yml
@@ -0,0 +1,82 @@
+# Spring
+spring: 
+  application:
+    # 应用名称
+    name: xinquan-course
+  main:
+    allow-bean-definition-overriding: true
+  profiles:
+    # 环境配置
+    active: dev
+---
+spring:
+  config:
+    activate:
+      on-profile: dev
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: cb7a3ad3-9e06-4a70-85d6-a774a1e76295
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: cb7a3ad3-9e06-4a70-85d6-a774a1e76295
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+---
+spring:
+  config:
+    activate:
+      on-profile: prod
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: 3452d750-b08d-4485-a1e9-4fb0548f1fc2
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: 3452d750-b08d-4485-a1e9-4fb0548f1fc2
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+---
+spring:
+  config:
+    activate:
+      on-profile: test
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
\ No newline at end of file
diff --git a/xinquan-modules/xinquan-meditation/src/main/resources/bootstrap.yml b/xinquan-modules/xinquan-meditation/src/main/resources/bootstrap.yml
new file mode 100644
index 0000000..1fd56c0
--- /dev/null
+++ b/xinquan-modules/xinquan-meditation/src/main/resources/bootstrap.yml
@@ -0,0 +1,82 @@
+# Spring
+spring: 
+  application:
+    # 应用名称
+    name: xinquan-meditation
+  main:
+    allow-bean-definition-overriding: true
+  profiles:
+    # 环境配置
+    active: dev
+---
+spring:
+  config:
+    activate:
+      on-profile: dev
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: cb7a3ad3-9e06-4a70-85d6-a774a1e76295
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: cb7a3ad3-9e06-4a70-85d6-a774a1e76295
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+---
+spring:
+  config:
+    activate:
+      on-profile: prod
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: 3452d750-b08d-4485-a1e9-4fb0548f1fc2
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: 3452d750-b08d-4485-a1e9-4fb0548f1fc2
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+---
+spring:
+  config:
+    activate:
+      on-profile: test
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
\ No newline at end of file
diff --git a/xinquan-modules/xinquan-system/src/main/resources/bootstrap.yml b/xinquan-modules/xinquan-system/src/main/resources/bootstrap.yml
new file mode 100644
index 0000000..03ae280
--- /dev/null
+++ b/xinquan-modules/xinquan-system/src/main/resources/bootstrap.yml
@@ -0,0 +1,82 @@
+# Spring
+spring: 
+  application:
+    # 应用名称
+    name: xinquan-system
+  main:
+    allow-bean-definition-overriding: true
+  profiles:
+    # 环境配置
+    active: dev
+---
+spring:
+  config:
+    activate:
+      on-profile: dev
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: cb7a3ad3-9e06-4a70-85d6-a774a1e76295
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: cb7a3ad3-9e06-4a70-85d6-a774a1e76295
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+---
+spring:
+  config:
+    activate:
+      on-profile: prod
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: 3452d750-b08d-4485-a1e9-4fb0548f1fc2
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: 3452d750-b08d-4485-a1e9-4fb0548f1fc2
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+---
+spring:
+  config:
+    activate:
+      on-profile: test
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
\ No newline at end of file
diff --git a/xinquan-modules/xinquan-user/src/main/resources/bootstrap.yml b/xinquan-modules/xinquan-user/src/main/resources/bootstrap.yml
new file mode 100644
index 0000000..aac9d38
--- /dev/null
+++ b/xinquan-modules/xinquan-user/src/main/resources/bootstrap.yml
@@ -0,0 +1,82 @@
+# Spring
+spring:
+  application:
+    # 应用名称
+    name: xinquan-user
+  main:
+    allow-bean-definition-overriding: true
+  profiles:
+    # 环境配置
+    active: dev
+---
+spring:
+  config:
+    activate:
+      on-profile: dev
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: cb7a3ad3-9e06-4a70-85d6-a774a1e76295
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: cb7a3ad3-9e06-4a70-85d6-a774a1e76295
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+---
+spring:
+  config:
+    activate:
+      on-profile: prod
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: 3452d750-b08d-4485-a1e9-4fb0548f1fc2
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: 3452d750-b08d-4485-a1e9-4fb0548f1fc2
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
+---
+spring:
+  config:
+    activate:
+      on-profile: test
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        server-addr: 127.0.0.1:8848
+        service: ${spring.application.name}
+        group: DEFAULT_GROUP
+        namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce
+      config:
+        # 配置中心地址
+        server-addr: 127.0.0.1:8848
+        namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce
+        group: DEFAULT_GROUP
+        name: ${spring.application.name}
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
\ No newline at end of file

--
Gitblit v1.7.1