Ver Fonte

add 基础信息配置

GITZYY há 7 meses atrás
pai
commit
dc1449903f

+ 0 - 0
start/src/main/resources/application-local.yaml → start/src/main/resources/application-back.yaml


+ 39 - 0
start/src/main/resources/application-dev.yaml

@@ -0,0 +1,39 @@
+spring:
+  application:
+    name:
+  redis:
+    database: 0
+    host: 192.168.1.169
+    #    port: 6379
+    port: 6380
+    password: meloinfo2023!
+    lettuce:
+      pool:
+        max-idle: 300
+        max-active: 600
+        max-wait: 1000s
+    timeout: 5s
+  datasource:
+    type: com.alibaba.druid.pool.DruidDataSource
+    #    url: jdbc:mysql://192.168.0.166:3306/loan_dev?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
+    url: jdbc:mysql://192.168.1.169:3306/loan_uat2?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
+    username: root
+    password: meloinfo2019
+    #url: jdbc:mysql://rm-bp1e5b4cg75f70084.mysql.rds.aliyuncs.com/loan_pre?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowMultiQueries=true
+    #username: loan_uat_mast
+    #password: n!OReCRXu4Y9KxKtJb
+    driver-class-name: com.mysql.jdbc.Driver
+    filters: stat
+    maxActive: 500
+    initialSize: 2
+    maxWait: 60000
+    minIdle: 1
+    timeBetweenEvictionRunsMillis: 60000
+    minEvictableIdleTimeMillis: 300000
+    validationQuery: select 1
+    testWhileIdle: true
+    testOnBorrow: false
+    testOnReturn: false
+    poolPreparedStatements: true
+    maxOpenPreparedStatements: 20
+    logSlowSql: true

+ 36 - 0
start/src/main/resources/application-pre.yaml

@@ -0,0 +1,36 @@
+spring:
+  application:
+    name:
+  redis:
+    database: 8
+    host: 47.96.139.31
+    #    port: 6379
+    port: 6380
+    password: IICdQIBA#DANB%gkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAK8f%
+    lettuce:
+      pool:
+        max-idle: 300
+        max-active: 600
+        max-wait: 1000s
+    timeout: 5s
+  datasource:
+    type: com.alibaba.druid.pool.DruidDataSource
+    #    url: jdbc:mysql://192.168.0.166:3306/loan_dev?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
+    url: jdbc:mysql://139.129.114.159:3306/loan_online?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
+    username: loan_pre
+    password: A3oDWgM4YxaHR0cDovL2NybDMu
+    driver-class-name: com.mysql.jdbc.Driver
+    filters: stat
+    maxActive: 500
+    initialSize: 2
+    maxWait: 60000
+    minIdle: 1
+    timeBetweenEvictionRunsMillis: 60000
+    minEvictableIdleTimeMillis: 300000
+    validationQuery: select 1
+    testWhileIdle: true
+    testOnBorrow: false
+    testOnReturn: false
+    poolPreparedStatements: true
+    maxOpenPreparedStatements: 20
+    logSlowSql: true

+ 6 - 3
start/src/main/resources/application.yaml

@@ -1,17 +1,20 @@
 #server
 #server
 server:
 server:
-  port: 8081
+  port: 890
   servlet:
   servlet:
     context-path: /
     context-path: /
 #spring
 #spring
 spring:
 spring:
   application:
   application:
-    name: xx-server
+    name: loan-server
   profiles:
   profiles:
-    active: local
+    active: pre
 #mybatis
 #mybatis
 mybatis:
 mybatis:
   config-location: classpath:mybatis-config.xml
   config-location: classpath:mybatis-config.xml
+mybatis-plus:
+  configurationProperties:
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
 #pageHelper
 #pageHelper
 pagehelper:
 pagehelper:
   helper-dialect: mysql
   helper-dialect: mysql