参考配置文件支持docker容器访问形式。

This commit is contained in:
terrfly 2024-03-05 10:20:37 +08:00
parent 05f6a703b1
commit 8b01cd53f3
3 changed files with 24 additions and 24 deletions

View File

@ -30,9 +30,9 @@ spring:
number_format: '#' #数字格式进行原样显示,不加格式化字符例如 100,00 number_format: '#' #数字格式进行原样显示,不加格式化字符例如 100,00
datasource: datasource:
# yml填写url连接串 无需将&符号进行转义 # yml填写url连接串 无需将&符号进行转义
url: jdbc:mysql://172.20.0.10:3306/jeepaydb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true url: jdbc:mysql://mysql8:3306/jeepaydb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
username: jeepay username: root
password: jeepay password: jeepaydb123456
druid: druid:
# 连接池配置项 # 连接池配置项
initial-size: 5 #初始化时建立物理连接的个数 initial-size: 5 #初始化时建立物理连接的个数
@ -55,7 +55,7 @@ spring:
cache: cache:
type: redis type: redis
redis: redis:
host: 172.20.0.12 host: redis6
port: 6379 port: 6379
database: 1 #1库运营平台 #2库商户系统 #3库支付网关 database: 1 #1库运营平台 #2库商户系统 #3库支付网关
timeout: 1000 timeout: 1000
@ -63,7 +63,7 @@ spring:
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 ) # #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
activemq: activemq:
broker-url: failover:(tcp://172.20.0.11:61616?wireFormat.maxInactivityDuration=0) #连接地址 broker-url: failover:(tcp://activemq5:61616?wireFormat.maxInactivityDuration=0) #连接地址
in-memory: false # Jeepay项目不可使用内存模式 需要连接多个消费者。 in-memory: false # Jeepay项目不可使用内存模式 需要连接多个消费者。
user: system # activeMQ默认无需账密认证。 打开认证activemq.xml添加simpleAuthenticationPlugin标签账密在credentials.properties文件。 user: system # activeMQ默认无需账密认证。 打开认证activemq.xml添加simpleAuthenticationPlugin标签账密在credentials.properties文件。
password: manager password: manager
@ -82,10 +82,10 @@ spring:
## rocketmq配置 ( 注意rocketmq配置项请放置到根目录 不是spring的二级配置 ) ## rocketmq配置 ( 注意rocketmq配置项请放置到根目录 不是spring的二级配置 )
rocketmq: #rocketmq:
name-server: 172.20.0.11:9876 # name-server: 172.20.0.11:9876
producer: # producer:
group: JEEPAY-GROUP # group: JEEPAY-GROUP
## 阿里云rocketmq配置 ( 注意aliyun-rocketmq配置项请放置到根目录 不是spring的二级配置需要阿里云开通rocketMQ产品创建Group和Topic ) ## 阿里云rocketmq配置 ( 注意aliyun-rocketmq配置项请放置到根目录 不是spring的二级配置需要阿里云开通rocketMQ产品创建Group和Topic )
#aliyun-rocketmq: #aliyun-rocketmq:
@ -101,7 +101,7 @@ logging:
level: level:
root: info #主日志级别 root: info #主日志级别
com.jeequan.jeepay: debug #该项目日志级别当需要打印sql时请开启为debug com.jeequan.jeepay: debug #该项目日志级别当需要打印sql时请开启为debug
path: ./logs #日志存放地址 path: /jeepayhomes/service/logs #日志存放地址
# knife4j APIDOC文档 # knife4j APIDOC文档
knife4j: knife4j:
@ -119,7 +119,7 @@ isys:
cache-config: false cache-config: false
oss: oss:
file-root-path: /home/jeepay/upload #存储根路径 ( 无需以‘/’结尾 ) file-root-path: /jeepayhomes/service/uploads #存储根路径 ( 无需以‘/’结尾 )
file-public-path: ${isys.oss.file-root-path}/public #公共读取块 ( 一般配合root-path参数进行设置需以/ 开头, 无需以‘/’结尾 ) file-public-path: ${isys.oss.file-root-path}/public #公共读取块 ( 一般配合root-path参数进行设置需以/ 开头, 无需以‘/’结尾 )
file-private-path: ${isys.oss.file-root-path}/private #私有化本地访问不允许url方式公共读取 ( 一般配合root-path参数进行设置需以/ 开头, 无需以‘/’结尾 ) file-private-path: ${isys.oss.file-root-path}/private #私有化本地访问不允许url方式公共读取 ( 一般配合root-path参数进行设置需以/ 开头, 无需以‘/’结尾 )

View File

@ -30,9 +30,9 @@ spring:
number_format: '#' #数字格式进行原样显示,不加格式化字符例如 100,00 number_format: '#' #数字格式进行原样显示,不加格式化字符例如 100,00
datasource: datasource:
# yml填写url连接串 无需将&符号进行转义 # yml填写url连接串 无需将&符号进行转义
url: jdbc:mysql://172.20.0.10:3306/jeepaydb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true url: jdbc:mysql://mysql8:3306/jeepaydb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
username: jeepay username: root
password: jeepay password: jeepaydb123456
druid: druid:
# 连接池配置项 # 连接池配置项
initial-size: 5 #初始化时建立物理连接的个数 initial-size: 5 #初始化时建立物理连接的个数
@ -55,7 +55,7 @@ spring:
cache: cache:
type: redis type: redis
redis: redis:
host: 172.20.0.12 host: redis6
port: 6379 port: 6379
database: 2 #1库运营平台 #2库商户系统 #3库支付网关 database: 2 #1库运营平台 #2库商户系统 #3库支付网关
timeout: 1000 timeout: 1000
@ -101,7 +101,7 @@ logging:
level: level:
root: info #主日志级别 root: info #主日志级别
com.jeequan.jeepay: debug #该项目日志级别当需要打印sql时请开启为debug com.jeequan.jeepay: debug #该项目日志级别当需要打印sql时请开启为debug
path: ./logs #日志存放地址 path: /jeepayhomes/service/logs #日志存放地址
# knife4j APIDOC文档 # knife4j APIDOC文档
knife4j: knife4j:
@ -119,7 +119,7 @@ isys:
cache-config: false cache-config: false
oss: oss:
file-root-path: /home/jeepay/upload #存储根路径 ( 无需以‘/’结尾 ) file-root-path: /jeepayhomes/service/uploads #存储根路径 ( 无需以‘/’结尾 )
file-public-path: ${isys.oss.file-root-path}/public #公共读取块 ( 一般配合root-path参数进行设置需以/ 开头, 无需以‘/’结尾 ) file-public-path: ${isys.oss.file-root-path}/public #公共读取块 ( 一般配合root-path参数进行设置需以/ 开头, 无需以‘/’结尾 )
file-private-path: ${isys.oss.file-root-path}/private #私有化本地访问不允许url方式公共读取 ( 一般配合root-path参数进行设置需以/ 开头, 无需以‘/’结尾 ) file-private-path: ${isys.oss.file-root-path}/private #私有化本地访问不允许url方式公共读取 ( 一般配合root-path参数进行设置需以/ 开头, 无需以‘/’结尾 )

View File

@ -30,9 +30,9 @@ spring:
number_format: '#' #数字格式进行原样显示,不加格式化字符例如 100,00 number_format: '#' #数字格式进行原样显示,不加格式化字符例如 100,00
datasource: datasource:
# yml填写url连接串 无需将&符号进行转义 # yml填写url连接串 无需将&符号进行转义
url: jdbc:mysql://172.20.0.10:3306/jeepaydb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true url: jdbc:mysql://mysql8:3306/jeepaydb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
username: jeepay username: root
password: jeepay password: jeepaydb123456
druid: druid:
# 连接池配置项 # 连接池配置项
initial-size: 5 #初始化时建立物理连接的个数 initial-size: 5 #初始化时建立物理连接的个数
@ -55,7 +55,7 @@ spring:
cache: cache:
type: redis type: redis
redis: redis:
host: 172.20.0.12 host: redis6
port: 6379 port: 6379
database: 3 #1库运营平台 #2库商户系统 #3库支付网关 database: 3 #1库运营平台 #2库商户系统 #3库支付网关
timeout: 1000 timeout: 1000
@ -63,7 +63,7 @@ spring:
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 ) # #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
activemq: activemq:
broker-url: failover:(tcp://172.20.0.11:61616?wireFormat.maxInactivityDuration=0) #连接地址 broker-url: failover:(tcp://activemq5:61616?wireFormat.maxInactivityDuration=0) #连接地址
in-memory: false # Jeepay项目不可使用内存模式 需要连接多个消费者。 in-memory: false # Jeepay项目不可使用内存模式 需要连接多个消费者。
user: system # activeMQ默认无需账密认证。 打开认证activemq.xml添加simpleAuthenticationPlugin标签账密在credentials.properties文件。 user: system # activeMQ默认无需账密认证。 打开认证activemq.xml添加simpleAuthenticationPlugin标签账密在credentials.properties文件。
password: manager password: manager
@ -100,7 +100,7 @@ logging:
level: level:
root: info #主日志级别 root: info #主日志级别
com.jeequan.jeepay: debug #该项目日志级别当需要打印sql时请开启为debug com.jeequan.jeepay: debug #该项目日志级别当需要打印sql时请开启为debug
path: ./logs #日志存放地址 path: /jeepayhomes/service/logs #日志存放地址
# knife4j APIDOC文档 # knife4j APIDOC文档
knife4j: knife4j:
@ -116,7 +116,7 @@ isys:
cache-config: false cache-config: false
oss: oss:
file-root-path: /home/jeepay/upload #存储根路径 ( 无需以‘/’结尾 ) file-root-path: /jeepayhomes/service/uploads #存储根路径 ( 无需以‘/’结尾 )
file-public-path: ${isys.oss.file-root-path}/public #公共读取块 ( 一般配合root-path参数进行设置需以/ 开头, 无需以‘/’结尾 ) file-public-path: ${isys.oss.file-root-path}/public #公共读取块 ( 一般配合root-path参数进行设置需以/ 开头, 无需以‘/’结尾 )
file-private-path: ${isys.oss.file-root-path}/private #私有化本地访问不允许url方式公共读取 ( 一般配合root-path参数进行设置需以/ 开头, 无需以‘/’结尾 ) file-private-path: ${isys.oss.file-root-path}/private #私有化本地访问不允许url方式公共读取 ( 一般配合root-path参数进行设置需以/ 开头, 无需以‘/’结尾 )