java-mall/mall-shop/src/main/resources/bootstrap-prod.yml
2025-08-05 20:23:54 +08:00

232 lines
7.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

spring:
servlet:
multipart:
max-file-size: 100MB #单个文件最大限制
max-request-size: 100MB #多个文件最大限制
mvc:
static-path-pattern: /shop/static/**
datasource:
url: jdbc:mysql://@mysql.host@:@mysql.port@/@mysql.db@?rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&&zeroDateTimeBehavior=convertToNull&autoReconnect=true&failOverReadOnly=false&maxReconnects=5
username: @mysql.user@
password: @mysql.pwd@
driver-class-name: @mysql.driver@
type: com.alibaba.druid.pool.DruidDataSource
druid:
async-init: true
initial-size: 10
max-active: 500
min-idle: 10
max-wait: 60000
validationQuery: SELECT 1
test-while-idle: true
test-on-borrow: false
test-on-return: false
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
filters: stat,wall,slf4j
filter:
stat:
enabled: true
db-type: mysql
log-slow-sql: true
slow-sql-millis: 10
aop-patterns: com.suisung.mall.common.service.impl.*,com.suisung.mall.core.web.service.impl.*,com.suisung.mall.shop.*
remove-abandoned: true
remove-abandoned-timeout: 1800
redis:
host: @redis.host@ # Redis服务器地址
database: @redis.database@ # Redis数据库索引默认为0
port: @redis.port@ # Redis服务器连接端口
password: @redis.password@ # Redis服务器连接密码默认为空
timeout: 3000ms # 连接超时时间(毫秒)
lettuce:
pool:
max-active: 64
max-wait: -1ms
max-idle: 64
min-idle: 0
rabbitmq:
host: @rabbitmq.host@
port: @rabbitmq.port@
virtual-host: @rabbitmq.virtual-host@
listener:
simple:
acknowledge-mode: manual #手动确认消息,不使用默认的消费端确认
retry:
enabled: true # 开启重试次数的限制,解决消费者出现异常死循环问题
max-attempts: 3 #最大重试次数
initial-interval: 1000 #重试间隔时间
publisher-confirm-type: correlated
publisher-returns: true
username: @rabbitmq.username@
password: @rabbitmq.password@
cloud:
nacos:
discovery:
server-addr: @nacos.server.address@
config:
server-addr: @nacos.server.address@
file-extension: yaml
sentinel:
transport:
dashboard: @sentinel.transport.dashboard@
eager: true
upload: # 图片上传配置
filepath: @upload.filepath@ # 本地环境静态文件路径
seata:
# 开启自动装配
enabled: true
# 本客户端的微服务名称
application-id: mall-shop
data-source-proxy-mode: AT
# 读取哪个事务分组
# 例如此时会读取 SEATA_GROUP 这个分组下的 service.vgroupMapping.my_test_tx_group 这个属性的值。从上面的配置可以知道笔者此处的最终值为 testCluster。后面程序运行会找到 testCluster 这个集群的seata服务端进行通讯。
tx-service-group: @seata.tx-service-group@
enable-auto-data-source-proxy: true
registry:
type: nacos
nacos:
server-addr: @nacos.server.address@
group: @seata.group@
username: @nacos.username@
password: @nacos.password@
config:
type: nacos
nacos:
server-addr: @nacos.server.address@
group: @seata.group@
username: @nacos.username@
password: @nacos.password@
service:
vgroup-mapping:
my_test_tx_group: default
# 控制台日志信息
logging:
level:
com:
suisung:
mall:
shop: debug
sun:
mail: error
baomidou: error
alibaba:
cloud:
seata: error
nacos:
client:
naming: error
config: error
netflix: error
org: error
io: error
reactor: error
springfox: error
# 项目主域名
main_domain: @project.domain@
# 个推
getui:
# Url前缀
baseUrl: https://restapi.getui.com/v2/
# appId、appKey、appSecret、masterSecret 需要去HBuilderX打包配置里拿
appId: BSI8xYmHyT76ngmcxFQDy9
appKey: nhdgI308yP7HKfiauhbji9
appSecret: cTBzsJbcZSAOeBXIREr4y2
masterSecret: ybdUcVJJKw5bAcQB4DpC0A
logstash:
host: @logstash.host@
project:
domain: @project.domain@
static_domain: @project.static_domain@
feieyun:
url: http://api.feieyun.cn/Api/Open/
user: 17777525395@163.com
ukey: vuzPtNVghXSxbZmr
sf-express:
# 顺丰同城 api 接口配置
dev_id: 1711573316
supplier_id: 0
appid: 1711573316
appkey: cd57608baa9c00fe1cda5f652b14240d
# dev_id: 1715091463
# appid: 1715091463
# appkey: 47466ae69c530f831395e1bc405639fb
enable: 2
#拉卡拉进件配置
lakala:
#服务地址
server_url: https://s2.lakala.com
#应用Id
app_id: OP10000439
#商户证书序列号
serial_no: 1737359895636
#商户证书
api_cert_path: payKey/lakala/prod/api_cert.cer
#商户私钥
api_pri_key_path: payKey/lakala/prod/api_private_key.pem
#拉卡拉平台证书
lkl_platform_cer_path: payKey/lakala/prod/lkl_platform.cer
#机构代码
org_code: 980688
is_prod: true
tk:
#服务地址
server_url: https://tkapi.lakala.com
client_id: gpff
client_secret: uRjvaJkWS1A0VsAv
user_no: 22874827
split_lowest_ratio: 70.00
activity_id: 208
wx_fee: 0.25 # 微信手续费 2.5/1000
api_pub_key_path: payKey/lakala/prod/tk_api_public_key.txt
api_pri_key_path: payKey/lakala/prod/tk_api_private_key.txt
notify_pub_key_path: payKey/lakala/prod/tk_notify_public_key.txt
notify_pri_key_path: payKey/lakala/prod/tk_notify_private_key.txt
# #服务地址
# server_url: https://test.wsmsd.cn/sit
# #应用Id
# app_id: OP00000003
# #商户证书序列号
# serial_no: 00dfba8194c41b84cf
# #商户证书
# api_cert_path: payKey/lakala/dev/OP00000003_cert.cer
# #商户私钥
# api_pri_key_path: payKey/lakala/dev/OP00000003_private_key.pem
# #拉卡拉平台证书
# lkl_platform_cer_path: payKey/lakala/dev/lkl_notify_cert_v2.cer
# #机构代码
# org_code: 1951582
# is_prod: false
# #拉卡拉拓客进件配置
# tk:
# #服务地址
# server_url: https://test.wsmsd.cn
# client_id: lsycs
# client_secret: XPa1HB5d55Ig0qV8
# user_no: 29153396
# split_lowest_ratio: 70.00
# activity_id: 687
# wx_fee: 0.6 # 微信手续费 6/1000
# api_pub_key_path: payKey/lakala/dev/tk_api_public_key.txt
# api_pri_key_path: payKey/lakala/dev/tk_api_private_key.txt
# notify_pub_key_path: payKey/lakala/dev/tk_notify_public_key.txt
# notify_pri_key_path: payKey/lakala/dev/tk_notify_private_key.txt
#e签宝配置
esign:
server_url: https://smlopenapi.esign.cn
#正式地址 https://openapi.esign.cn
app_id: 7439053575
app_secret: 8da2e1eeeaf88e09bcf432a2fdd3e4d7
app_rsa: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAiC
debug: false
esign_prod:
server_url: https://openapi.esign.cn
app_id: 5111986290
app_secret: 4408a0395464596cf7d33dda5f9c7608
app_rsa: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApzK8BGqUdq9eufyPieCux2bMuKnXHQXgCT2kVcHqwFW1LqZMxm/npuf94C8XLK481klD15WPTVi5YUrqnXYZpIawbuH1+2bfHnZL4aSdZ+QUvlol2WLigoxlgPU9gFYWj/ykovQKi78myWbrIzaM6VJxB6RSJKBVzxm2v8M93J73S8btT7E/RRBtX+dGP7In0PpTwugsHG/w7NQ/e3budt4FLIobGzZT26GkuQ6k8fme6M+aAWgfmQIEGi+a8HLl8hP21wHHCxLJKHxxH/OADQGnzRiK632yaXmGD9/cj2xo/6zzNKDkHK9Ud64E7Pj2LrZPBaXPoxhLqJ7j6v6MgQIDAQAB
debug: false
#客户端上传文件地址
client:
path: /home/user/data