From f7906ce627b65cae073ebb92d91a89d692db3eea Mon Sep 17 00:00:00 2001
From: baizonghao <1719256278@qq.com>
Date: 星期四, 23 三月 2023 15:45:35 +0800
Subject: [PATCH] 添加yml

---
 src/main/resources/application-dev.yml |   55 ++++++++++++++++++
 src/main/resources/application-pro.yml |   53 +++++++++++++++++
 src/main/resources/application.yml     |   56 ------------------
 3 files changed, 110 insertions(+), 54 deletions(-)

diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml
new file mode 100644
index 0000000..98c89a0
--- /dev/null
+++ b/src/main/resources/application-dev.yml
@@ -0,0 +1,55 @@
+# 绔彛鍙�
+server:
+  port: 8080
+
+# spring閰嶇疆
+spring:
+  # 鏁版嵁婧愰厤缃�
+  datasource:
+    url: jdbc:mysql://221.237.182.28:19002/qyjz?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: root
+    password: 234#Wersdf!
+    driverClassName: com.mysql.cj.jdbc.Driver
+    type: com.zaxxer.hikari.HikariDataSource
+    # 鏁版嵁搴撹繛鎺ユ睜閰嶇疆
+    hikari:
+      minimum-idle: 10
+      maximum-pool-size: 30
+      auto-commit: true
+      idle-timeout: 30000
+      pool-name: HikariCP
+      max-lifetime: 900000
+      connection-timeout: 10000
+      connection-test-query: SELECT 1
+      validation-timeout: 1000
+  servlet:
+    multipart:
+      max-file-size: 50MB
+  jackson:
+    date-format: yyyy-MM-dd HH:mm:ss
+    time-zone: GMT+8
+
+# minio閰嶇疆
+minio:
+  address: http://221.237.182.28:19000
+  accessKey: admin
+  secretKey: 234#Wersdf!
+  bucketName: img
+  url: 221.237.182.28:19000/minio/
+
+# mybatis閰嶇疆
+mybatis-plus:
+  global-config:
+    banner: false
+    db-config:
+      id-type: auto
+      field-strategy: NOT_NULL
+
+logging:
+  level:
+    com.example.jz: debug
+
+#灏忕▼搴�
+wx:
+  appid: wxd7bb3a22cfb97aaa
+  secret: 0d08a9dfe83749d65aea9a0ad3a23b5a
\ No newline at end of file
diff --git a/src/main/resources/application-pro.yml b/src/main/resources/application-pro.yml
new file mode 100644
index 0000000..65dcb69
--- /dev/null
+++ b/src/main/resources/application-pro.yml
@@ -0,0 +1,53 @@
+# 绔彛鍙�
+server:
+  port: 8080
+
+# spring閰嶇疆
+spring:
+  # 鏁版嵁婧愰厤缃�
+  datasource:
+    url: jdbc:mysql://221.237.182.28:19002/qyjz?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: root
+    password: 234#Wersdf!
+    driverClassName: com.mysql.cj.jdbc.Driver
+    type: com.zaxxer.hikari.HikariDataSource
+    # 鏁版嵁搴撹繛鎺ユ睜閰嶇疆
+    hikari:
+      minimum-idle: 10
+      maximum-pool-size: 30
+      auto-commit: true
+      idle-timeout: 30000
+      pool-name: HikariCP
+      max-lifetime: 900000
+      connection-timeout: 10000
+      connection-test-query: SELECT 1
+      validation-timeout: 1000
+  servlet:
+    multipart:
+      max-file-size: 50MB
+  jackson:
+    date-format: yyyy-MM-dd HH:mm:ss
+    time-zone: GMT+8
+
+# minio閰嶇疆
+minio:
+  address: http://221.237.182.28:19000
+  accessKey: admin
+  secretKey: 234#Wersdf!
+  bucketName: img
+  url: /minio/
+
+# mybatis閰嶇疆
+mybatis-plus:
+  global-config:
+    banner: false
+    db-config:
+      id-type: auto
+      field-strategy: NOT_NULL
+  configuration:
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+
+#灏忕▼搴�
+wx:
+  appid: wxd7bb3a22cfb97aaa
+  secret: 0d08a9dfe83749d65aea9a0ad3a23b5a
\ No newline at end of file
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 98c89a0..caf4dfc 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,55 +1,3 @@
-# 绔彛鍙�
-server:
-  port: 8080
-
-# spring閰嶇疆
 spring:
-  # 鏁版嵁婧愰厤缃�
-  datasource:
-    url: jdbc:mysql://221.237.182.28:19002/qyjz?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai
-    username: root
-    password: 234#Wersdf!
-    driverClassName: com.mysql.cj.jdbc.Driver
-    type: com.zaxxer.hikari.HikariDataSource
-    # 鏁版嵁搴撹繛鎺ユ睜閰嶇疆
-    hikari:
-      minimum-idle: 10
-      maximum-pool-size: 30
-      auto-commit: true
-      idle-timeout: 30000
-      pool-name: HikariCP
-      max-lifetime: 900000
-      connection-timeout: 10000
-      connection-test-query: SELECT 1
-      validation-timeout: 1000
-  servlet:
-    multipart:
-      max-file-size: 50MB
-  jackson:
-    date-format: yyyy-MM-dd HH:mm:ss
-    time-zone: GMT+8
-
-# minio閰嶇疆
-minio:
-  address: http://221.237.182.28:19000
-  accessKey: admin
-  secretKey: 234#Wersdf!
-  bucketName: img
-  url: 221.237.182.28:19000/minio/
-
-# mybatis閰嶇疆
-mybatis-plus:
-  global-config:
-    banner: false
-    db-config:
-      id-type: auto
-      field-strategy: NOT_NULL
-
-logging:
-  level:
-    com.example.jz: debug
-
-#灏忕▼搴�
-wx:
-  appid: wxd7bb3a22cfb97aaa
-  secret: 0d08a9dfe83749d65aea9a0ad3a23b5a
\ No newline at end of file
+  profiles:
+    active: dev
\ No newline at end of file

--
Gitblit v1.8.0