pay-mall/pay-mall-app/src/main/resources/application-dev.yml
2025-07-19 14:15:59 +08:00

97 lines
3.1 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.

server:
port: 8092
# 应用配置
app:
config:
# 版本,方便通过接口版本升级
api-version: v1
# 跨域,开发阶段可以设置为 * 不限制
cross-origin: '*'
# SC 渠道配置 - 拼团对接渠道值、回调通知
group-buy-market:
api-url: http://127.0.0.1:8091
notify-url: http://127.0.0.1:8092/api/v1/alipay/group_buy_notify
source: s01
chanel: c01
# 线程池配置
thread:
pool:
executor:
config:
core-pool-size: 20
max-pool-size: 50
keep-alive-time: 5000
block-queue-size: 5000
policy: CallerRunsPolicy
# 数据库配置;启动时配置数据库资源信息
spring:
datasource:
username: root
password: 123456
url: jdbc:mysql://127.0.0.1:13306/pay-mall?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&useSSL=true
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
pool-name: Retail_HikariCP
minimum-idle: 15 #最小空闲连接数量
idle-timeout: 180000 #空闲连接存活最大时间默认60000010分钟
maximum-pool-size: 25 #连接池最大连接数默认是10
auto-commit: true #此属性控制从池返回的连接的默认自动提交行为,默认值true
max-lifetime: 1800000 #此属性控制池中连接的最长生命周期值0表示无限生命周期默认1800000即30分钟
connection-timeout: 30000 #数据库连接超时时间,默认30秒即30000
connection-test-query: SELECT 1
type: com.zaxxer.hikari.HikariDataSource
# RabbitMQ
rabbitmq:
addresses: 192.168.10.218
port: 5672
username: admin
password: admin
listener:
simple:
prefetch: 1 # 每次投递n个消息消费完在投递n个
template:
delivery-mode: persistent # 确保全局默认设置为持久化(可选)
# 消息配置
config:
consumer:
# 消费 topic 主题team_success
topic_team_success:
# 绑定交换机 - 消息提供者的交换机
exchange: group_buy_market_exchange
# 消息主题
routing_key: topic.team_success
# 消费队列 - 每个系统有自己的消费队列
queue: pay_mall_queue_2_topic_team_success
# MyBatis 配置【如需使用记得打开】
mybatis:
mapper-locations: classpath:/mybatis/mapper/*.xml
config-location: classpath:/mybatis/config/mybatis-config.xml
# 微信公众号对接
weixin:
config:
original-id: ${paymall.wechat.original-id}
token: ${paymall.wechat.token}
app-id: ${paymall.wechat.app-id}
app-secret: ${paymall.wechat.app-secret}
template_id: ${paymall.wechat.template-id}
# 支付宝支付 - 沙箱 https://opendocs.alipay.com/common/02kkv7
alipay:
enabled: true
app_id: ${paymall.alipay.app-id}
merchant_private_key: ${paymall.alipay.merchant-private-key}
alipay_public_key: ${paymall.alipay.alipay-public-key}
notify_url: ${paymall.alipay.notify-url}
return_url: ${paymall.alipay.return-url}
gateway_url: ${paymall.alipay.gateway-url}
# 日志
logging:
level:
root: info
config: classpath:logback-spring.xml