feat: dev增加预发布地址

This commit is contained in:
张松
2024-11-25 11:09:26 +08:00
parent 9b1352360d
commit 4c209ac27b

View File

@@ -1,13 +1,19 @@
#PRE_DATABASE: fycashier_pre
#PRE_HOST: 121.40.109.122
server:
port: 10589
spring:
application:
name: cashierService
datasource:
url: jdbc:p6spy:mysql://rm-bp1kn7h89nz62cno1ro.mysql.rds.aliyuncs.com:3306/fycashier_test?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useJDBCCompliantTimezoneShift=true&serverTimezone=Asia/Shanghai&useSSL=false&allowMultiQueries=true
url: jdbc:p6spy:mysql://rm-bp1kn7h89nz62cno1ro.mysql.rds.aliyuncs.com:3306/${PRE_DATABASE:fycashier_test}?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useJDBCCompliantTimezoneShift=true&serverTimezone=Asia/Shanghai&useSSL=false&allowMultiQueries=true
username: cashier
password: Cashier@1@
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
# url: jdbc:mysql://rm-bp1b572nblln4jho2po.mysql.rds.aliyuncs.com/fycashier?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useJDBCCompliantTimezoneShift=true&serverTimezone=Asia/Shanghai&useSSL=false&allowMultiQueries=true
# username: root
# password: Czg666888
# driver-class-name: com.mysql.cj.jdbc.Driver
initialSize: 5
minIdle: 5
maxActive: 20
@@ -16,8 +22,9 @@ spring:
# redis数据库索引默认为0我们使用索引为3的数据库避免和其他数据库冲突
database: 0
# redis服务器地址默认为localhost
host: 101.37.12.135
# host: 127.0.0.1
host: ${PRE_HOSE:101.37.12.135}
# host: 121.40.128.145
# host: 127.0.0.1
# redis端口默认为6379
port: 6379
# redis访问密码默认为空