Browse Source

tools config

chao 4 years ago
parent
commit
b48efdda65

+ 22 - 44
caimei365-cloud-tools/tools-beta.yml

@@ -1,21 +1,21 @@
 spring:
-  # # 数据源连接--start
-  # datasource:
-  # url: jdbc:mysql://172.31.165.28:3306/caimei?characterEncoding=UTF8&serverTimezone=Asia/Shanghai
-  # username: developer
-  # password: J5p3tgOVazNl4ydf
-  #   # Hikari will use the above plus the following to setup connection pooling
-  #   type: com.zaxxer.hikari.HikariDataSource
-  #   hikari:
-  #     minimum-idle: 5
-  #     maximum-pool-size: 15
-  #     auto-commit: true
-  #     idle-timeout: 30000
-  #     pool-name: DatebookHikariCP
-  #     max-lifetime: 1800000
-  #     connection-timeout: 30000
-  #     connection-test-query: SELECT 1
-  # # 数据源连接--end
+  # 数据源连接--start
+  datasource:
+  url: jdbc:mysql://172.31.165.28:3306/caimei?characterEncoding=UTF8&serverTimezone=Asia/Shanghai
+  username: developer
+  password: J5p3tgOVazNl4ydf
+    # Hikari will use the above plus the following to setup connection pooling
+    type: com.zaxxer.hikari.HikariDataSource
+    hikari:
+      minimum-idle: 5
+      maximum-pool-size: 15
+      auto-commit: true
+      idle-timeout: 30000
+      pool-name: DatebookHikariCP
+      max-lifetime: 1800000
+      connection-timeout: 30000
+      connection-test-query: SELECT 1
+  # 数据源连接--end
 
   redis:
     host: 172.31.165.27
@@ -36,11 +36,11 @@ spring:
     #连接超时时间(毫秒)
     timeout: 5000
 
-# #整合mybatis
-# mybatis:
-#   #加载Mybatis映射文件
-#   mapper-locations:
-#     - classpath:mapper/*.xml
+#整合mybatis
+mybatis:
+  #加载Mybatis映射文件
+  mapper-locations:
+    - classpath:mapper/*.xml
 
 # 指定服务注册中心的地址
 eureka:
@@ -59,31 +59,9 @@ logging:
   level:
     root: info
 
-# # 微信配置
-# wx:
-#   #pcwx信息
-#   app-id: wx22be9ab1a6aa4715
-#   app-secret: ebf8cfc4dbadae3431a8b0267c4fd09f
-#   # 微信授权回调(扫码),nginx中转
-#   redirect-uri: https://www.caimei365.com/auth/callback/beta
-#   #小程序wx信息
-#   mini-app-id: wxf3cd4ae0cdd11c36
-#   mini-app-secret: f5707c40c07adf0e2110c58ce6a4f4b3
-#   #crm公众号信息
-#   crm-app-id: wxea43a0f9ebce9e66
-#   crm-app-secret: 1c3cd60908e72dd280840bee9e15f7f6
-#   #呵呵商城小程序信息
-#   hehe-app-id: wx2c3b0a7f343235b1
-#   hehe-app-secret: 1bb87882ee85a0411923d7f56c7dde75
-
 # swagger配置
 swagger:
   # swagger开启状态,true开启,false关闭
   enabled: true
   ui-config:
     operations-sorter: method
-
-# caimei:
-#   # 小程序邀请码过期天数
-#   validTime: 7
-

+ 21 - 44
caimei365-cloud-tools/tools-dev.yml

@@ -1,20 +1,20 @@
 spring:
-  # # 数据源连接--start
-  # datasource:
-  #   url: jdbc:mysql://192.168.2.100:3306/caimei?characterEncoding=UTF8&serverTimezone=Asia/Shanghai
-  #   username: developer
-  #   password: 05bZ/OxTB:X+yd%1
-  #   type: com.zaxxer.hikari.HikariDataSource
-  #   hikari:
-  #     minimum-idle: 5
-  #     maximum-pool-size: 15
-  #     auto-commit: true
-  #     idle-timeout: 30000
-  #     pool-name: DatebookHikariCP
-  #     max-lifetime: 1800000
-  #     connection-timeout: 30000
-  #     connection-test-query: SELECT 1
-  # # 数据源连接--end
+  # 数据源连接--start
+  datasource:
+    url: jdbc:mysql://192.168.2.100:3306/caimei?characterEncoding=UTF8&serverTimezone=Asia/Shanghai
+    username: developer
+    password: 05bZ/OxTB:X+yd%1
+    type: com.zaxxer.hikari.HikariDataSource
+    hikari:
+      minimum-idle: 5
+      maximum-pool-size: 15
+      auto-commit: true
+      idle-timeout: 30000
+      pool-name: DatebookHikariCP
+      max-lifetime: 1800000
+      connection-timeout: 30000
+      connection-test-query: SELECT 1
+  # 数据源连接--end
   
   redis:
     host: 119.29.0.46
@@ -34,11 +34,11 @@ spring:
     #连接超时时间(毫秒)
     timeout: 5000
 
-# #整合mybatis
-# mybatis:
-#   #加载Mybatis映射文件
-#   mapper-locations:
-#     - classpath:mapper/*.xml
+#整合mybatis
+mybatis:
+  #加载Mybatis映射文件
+  mapper-locations:
+    - classpath:mapper/*.xml
 
 # 指定服务注册中心的地址
 eureka:
@@ -49,38 +49,15 @@ eureka:
     service-url:                  # 设置服务注册中心地址
       defaultZone: http://localhost:18000/eureka/
 
-
 # 日志配置
 logging:
   level:
     root: info
     com.caimei365.user.mapper: debug
 
-
-# # 微信配置
-# wx:
-#   #pcwx信息
-#   app-id: wx22be9ab1a6aa4715
-#   app-secret: ebf8cfc4dbadae3431a8b0267c4fd09f
-#   # 微信授权回调(扫码),nginx中转
-#   redirect-uri: https://www.caimei365.com/auth/callback/beta
-#   #小程序wx信息
-#   mini-app-id: wxf3cd4ae0cdd11c36
-#   mini-app-secret: f5707c40c07adf0e2110c58ce6a4f4b3
-#   #crm公众号信息
-#   crm-app-id: wxea43a0f9ebce9e66
-#   crm-app-secret: 1c3cd60908e72dd280840bee9e15f7f6
-#   #呵呵商城小程序信息
-#   hehe-app-id: wx2c3b0a7f343235b1
-#   hehe-app-secret: 1bb87882ee85a0411923d7f56c7dde75
-
 # swagger配置
 swagger:
   # swagger开启状态,true开启,false关闭
   enabled: true
   ui-config:
     operations-sorter: method
-
-# caimei:
-#   # 小程序邀请码过期天数
-#   validTime: 7

+ 22 - 46
caimei365-cloud-tools/tools-prod.yml

@@ -1,21 +1,21 @@
 spring:
-  # # 数据源连接--start
-  # datasource:
-  #   url: jdbc:mysql://rm-wz928s8btl7kxil44.mysql.rds.aliyuncs.com:3306/caimei?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true
-  #   username: coder
-  #   password: diKtPYZ%wToI&9#L
-  #   # Hikari will use the above plus the following to setup connection pooling
-  #   type: com.zaxxer.hikari.HikariDataSource
-  #   hikari:
-  #     minimum-idle: 5
-  #     maximum-pool-size: 15
-  #     auto-commit: true
-  #     idle-timeout: 30000
-  #     pool-name: DatebookHikariCP
-  #     max-lifetime: 1800000
-  #     connection-timeout: 30000
-  #     connection-test-query: SELECT 1
-  # # 数据源连接--end
+  # 数据源连接--start
+  datasource:
+    url: jdbc:mysql://rm-wz928s8btl7kxil44.mysql.rds.aliyuncs.com:3306/caimei?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true
+    username: coder
+    password: diKtPYZ%wToI&9#L
+    # Hikari will use the above plus the following to setup connection pooling
+    type: com.zaxxer.hikari.HikariDataSource
+    hikari:
+      minimum-idle: 5
+      maximum-pool-size: 15
+      auto-commit: true
+      idle-timeout: 30000
+      pool-name: DatebookHikariCP
+      max-lifetime: 1800000
+      connection-timeout: 30000
+      connection-test-query: SELECT 1
+  # 数据源连接--end
 
   redis:
     host: 172.31.165.23
@@ -36,11 +36,11 @@ spring:
     #连接超时时间(毫秒)
     timeout: 5000
 
-# #整合mybatis
-# mybatis:
-#   #加载Mybatis映射文件
-#   mapper-locations:
-#     - classpath:mapper/*.xml
+#整合mybatis
+mybatis:
+  #加载Mybatis映射文件
+  mapper-locations:
+    - classpath:mapper/*.xml
 
 # 指定服务注册中心的地址
 eureka:
@@ -51,7 +51,6 @@ eureka:
     service-url:                  # 设置服务注册中心地址
       defaultZone: http://120.79.162.1:18000/eureka/
 
-
 #日志配置
 logging:
   file:
@@ -59,32 +58,9 @@ logging:
   level:
     root: info
 
-# # 微信配置
-# wx:
-#   #pcwx信息
-#   app-id: wx22be9ab1a6aa4715
-#   app-secret: ebf8cfc4dbadae3431a8b0267c4fd09f
-#   # 微信授权回调(扫码),nginx中转
-#   redirect-uri: https://www.caimei365.com/auth/callback
-#   #小程序wx信息
-#   mini-app-id: wxf3cd4ae0cdd11c36
-#   mini-app-secret: f5707c40c07adf0e2110c58ce6a4f4b3
-#   #crm公众号信息
-#   crm-app-id: wxea43a0f9ebce9e66
-#   crm-app-secret: 1c3cd60908e72dd280840bee9e15f7f6
-#   #呵呵商城小程序信息
-#   hehe-app-id: wx2c3b0a7f343235b1
-#   hehe-app-secret: 1bb87882ee85a0411923d7f56c7dde75
-
 # swagger配置
 swagger:
   # swagger开启状态,true开启,false关闭
   enabled: false
   ui-config:
     operations-sorter: method
-
-# caimei:
-#   # 小程序邀请码过期天数
-#   validTime: 7
-
-