修改manager、merchant配置

This commit is contained in:
暇享 2024-03-18 23:36:24 +08:00
parent 85c74ae900
commit 393ef783af
3 changed files with 54 additions and 38 deletions

View File

@ -1,6 +1,9 @@
#################################
# 开发环境通用配置文件(每个项目通用配置)
#################################
my:
db-server:
addr: localhost
server:
servlet:
context-path: / #设置应用的目录. 前缀需要带/, 无需设置后缀, 示例 【 /xxx 】 or 【 / 】
@ -21,9 +24,9 @@ spring:
number_format: '#' #数字格式进行原样显示,不加格式化字符例如 100,00
datasource:
# yml填写url连接串 无需将&符号进行转义
url: jdbc:mysql://127.0.0.1:3306/jeepaydb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
url: jdbc:mysql://${my.db-server.addr}:3306/jeepaydb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: 123
password: 123456
druid:
# 连接池配置项
initial-size: 5 #初始化时建立物理连接的个数
@ -52,15 +55,15 @@ spring:
password:
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
activemq:
broker-url: failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0) #连接地址
in-memory: false # Jeepay项目不可使用内存模式 需要连接多个消费者。
user: system # activeMQ默认无需账密认证。 打开认证activemq.xml添加simpleAuthenticationPlugin标签账密在credentials.properties文件。
password: manager
pool:
enabled: true
max-connections: 10
idle-timeout: 30000 # 空闲的连接过期时间默认为30秒
# activemq:
# broker-url: failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0) #连接地址
# in-memory: false # Jeepay项目不可使用内存模式 需要连接多个消费者。
# user: system # activeMQ默认无需账密认证。 打开认证activemq.xml添加simpleAuthenticationPlugin标签账密在credentials.properties文件。
# password: manager
# pool:
# enabled: true
# max-connections: 10
# idle-timeout: 30000 # 空闲的连接过期时间默认为30秒
#
# #rabbitmq配置 ( 注意: rabbitmq配置项需在spring的下级 )
# rabbitmq:
@ -83,6 +86,7 @@ spring:
# secretKey: xxx
# groupId: GID_JEEPAY_T
#日志配置参数。
# 当存在logback-spring.xml文件时 该配置将引进到logback配置 springboot配置不生效。
# 不存在logback-spring.xml 文件时, 使用springboot的配置 同样可用。
@ -98,6 +102,7 @@ knife4j:
#系统业务参数
isys:
#是否允许跨域请求 [生产环境建议关闭, 若api与前端项目没有在同一个域名下时应开启此配置或在nginx统一配置允许跨域]
allow-cors: true

View File

@ -9,6 +9,11 @@
# 该yml文件只配置与环境相关的参数 其他配置读取项目下的配置项
#
#################################
my:
addr:
mysql: host.docker.internal
redis: host.docker.internal
server:
port: 9217 #设置端口
servlet:
@ -30,9 +35,9 @@ spring:
number_format: '#' #数字格式进行原样显示,不加格式化字符例如 100,00
datasource:
# yml填写url连接串 无需将&符号进行转义
url: jdbc:mysql://mysql8:3306/jeepaydb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
url: jdbc:mysql://${my.addr.mysql}:3306/jeepaydb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: jeepaydb123456
password: 123456
druid:
# 连接池配置项
initial-size: 5 #初始化时建立物理连接的个数
@ -55,22 +60,22 @@ spring:
cache:
type: redis
redis:
host: redis6
host: ${my.addr.redis}
port: 6379
database: 1 #1库运营平台 #2库商户系统 #3库支付网关
timeout: 1000
password:
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
activemq:
broker-url: failover:(tcp://activemq5:61616?wireFormat.maxInactivityDuration=0) #连接地址
in-memory: false # Jeepay项目不可使用内存模式 需要连接多个消费者。
user: system # activeMQ默认无需账密认证。 打开认证activemq.xml添加simpleAuthenticationPlugin标签账密在credentials.properties文件。
password: manager
pool:
enabled: true
max-connections: 10
idle-timeout: 30000 # 空闲的连接过期时间默认为30秒
# activemq:
# broker-url: failover:(tcp://activemq5:61616?wireFormat.maxInactivityDuration=0) #连接地址
# in-memory: false # Jeepay项目不可使用内存模式 需要连接多个消费者。
# user: system # activeMQ默认无需账密认证。 打开认证activemq.xml添加simpleAuthenticationPlugin标签账密在credentials.properties文件。
# password: manager
# pool:
# enabled: true
# max-connections: 10
# idle-timeout: 30000 # 空闲的连接过期时间默认为30秒
#
# #rabbitmq配置 ( 注意: rabbitmq配置项需在spring的下级 )
# rabbitmq:
@ -94,6 +99,7 @@ spring:
# secretKey: xxx
# groupId: GID_JEEPAY_T
#日志配置参数。
# 当存在logback-spring.xml文件时 该配置将引进到logback配置 springboot配置不生效。
# 不存在logback-spring.xml 文件时, 使用springboot的配置 同样可用。
@ -105,7 +111,7 @@ logging:
# knife4j APIDOC文档
knife4j:
enable: false
enable: true
#系统业务参数
isys:

View File

@ -9,6 +9,11 @@
# 该yml文件只配置与环境相关的参数 其他配置读取项目下的配置项
#
#################################
my:
addr:
mysql: host.docker.internal
redis: host.docker.internal
server:
port: 9218 #设置端口
servlet:
@ -30,9 +35,9 @@ spring:
number_format: '#' #数字格式进行原样显示,不加格式化字符例如 100,00
datasource:
# yml填写url连接串 无需将&符号进行转义
url: jdbc:mysql://mysql8:3306/jeepaydb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
url: jdbc:mysql://${my.addr.mysql}:3306/jeepaydb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: jeepaydb123456
password: 123456
druid:
# 连接池配置项
initial-size: 5 #初始化时建立物理连接的个数
@ -55,22 +60,22 @@ spring:
cache:
type: redis
redis:
host: redis6
host: ${my.addr.redis}
port: 6379
database: 2 #1库运营平台 #2库商户系统 #3库支付网关
timeout: 1000
password:
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
activemq:
broker-url: failover:(tcp://172.20.0.11:61616?wireFormat.maxInactivityDuration=0) #连接地址
in-memory: false # Jeepay项目不可使用内存模式 需要连接多个消费者。
user: system # activeMQ默认无需账密认证。 打开认证activemq.xml添加simpleAuthenticationPlugin标签账密在credentials.properties文件。
password: manager
pool:
enabled: true
max-connections: 10
idle-timeout: 30000 # 空闲的连接过期时间默认为30秒
# activemq:
# broker-url: failover:(tcp://172.20.0.11:61616?wireFormat.maxInactivityDuration=0) #连接地址
# in-memory: false # Jeepay项目不可使用内存模式 需要连接多个消费者。
# user: system # activeMQ默认无需账密认证。 打开认证activemq.xml添加simpleAuthenticationPlugin标签账密在credentials.properties文件。
# password: manager
# pool:
# enabled: true
# max-connections: 10
# idle-timeout: 30000 # 空闲的连接过期时间默认为30秒
#
# #rabbitmq配置 ( 注意: rabbitmq配置项需在spring的下级 )
# rabbitmq:
@ -80,7 +85,6 @@ spring:
# dynamic: true
# virtual-host: jeepay
## rocketmq配置 ( 注意rocketmq配置项请放置到根目录 不是spring的二级配置 )
#rocketmq:
# name-server: 172.20.0.11:9876
@ -94,6 +98,7 @@ spring:
# secretKey: xxx
# groupId: GID_JEEPAY_T
#日志配置参数。
# 当存在logback-spring.xml文件时 该配置将引进到logback配置 springboot配置不生效。
# 不存在logback-spring.xml 文件时, 使用springboot的配置 同样可用。
@ -105,7 +110,7 @@ logging:
# knife4j APIDOC文档
knife4j:
enable: false
enable: true
#系统业务参数
isys: