2025-08-07 00:25:08 +08:00
|
|
|
|
spring:
|
|
|
|
|
|
datasource:
|
2025-08-07 02:44:23 +08:00
|
|
|
|
# url: jdbc:mysql://${zlt.datasource.ip}:3306/device-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
|
|
|
|
|
|
url: jdbc:mysql://${zlt.datasource.ip}/coupon-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
|
|
|
|
|
username: ${zlt.datasource.username}
|
|
|
|
|
|
password: ${zlt.datasource.password}
|
2025-08-07 00:25:08 +08:00
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
2025-09-01 01:54:14 +08:00
|
|
|
|
# 环境配置:test(测试环境) / prod(生产环境)
|
|
|
|
|
|
profiles:
|
|
|
|
|
|
active: test
|
2025-08-07 00:25:08 +08:00
|
|
|
|
|
|
|
|
|
|
mybatis-plus:
|
2025-08-07 02:44:23 +08:00
|
|
|
|
mapper-locations: classpath:/mapper/*Mapper.xml
|
|
|
|
|
|
#实体扫描,多个package用逗号或者分号分隔
|
|
|
|
|
|
typeAliasesPackage: com.central.coupon.model
|
|
|
|
|
|
# configuration:
|
|
|
|
|
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
2025-08-07 00:25:08 +08:00
|
|
|
|
global-config:
|
|
|
|
|
|
db-config:
|
|
|
|
|
|
id-type: auto
|
2025-08-07 02:44:23 +08:00
|
|
|
|
|
|
|
|
|
|
springdoc:
|
|
|
|
|
|
group-configs:
|
|
|
|
|
|
- group: 'default'
|
|
|
|
|
|
paths-to-match: '/**'
|
|
|
|
|
|
packages-to-scan: com.central.coupon.controller
|
|
|
|
|
|
|
|
|
|
|
|
knife4j:
|
|
|
|
|
|
enable: true
|
|
|
|
|
|
setting:
|
|
|
|
|
|
swagger-model-name: 优惠券中心接口文档
|
|
|
|
|
|
zlt:
|
|
|
|
|
|
#多租户配置
|
|
|
|
|
|
tenant:
|
|
|
|
|
|
enable: false
|
|
|
|
|
|
ignoreTables:
|
|
|
|
|
|
ignoreSqls:
|
2025-08-07 03:57:13 +08:00
|
|
|
|
# 禁用分布式锁
|
|
|
|
|
|
lock:
|
|
|
|
|
|
lockerType: NONE
|
2025-08-07 00:25:08 +08:00
|
|
|
|
|
|
|
|
|
|
# 日志配置
|
|
|
|
|
|
logging:
|
|
|
|
|
|
level:
|
2025-08-07 02:44:23 +08:00
|
|
|
|
com.central.order.controller.OrderFileController: DEBUG
|
2025-08-07 03:57:13 +08:00
|
|
|
|
com.central.coupon.util.CtripDecryptUtil: DEBUG
|
2025-08-07 00:25:08 +08:00
|
|
|
|
|
2025-08-07 02:44:23 +08:00
|
|
|
|
# 携程API配置
|
|
|
|
|
|
ctrip:
|
2025-08-07 16:13:04 +08:00
|
|
|
|
# AES加密配置
|
2025-08-07 02:44:23 +08:00
|
|
|
|
aes:
|
2025-09-01 15:25:07 +08:00
|
|
|
|
key: 6196f64f4f6e5dca # 为实际的AES密钥
|
|
|
|
|
|
iv: 28405d20246ecccd # 为实际的AES IV
|
2025-08-07 16:13:04 +08:00
|
|
|
|
# 签名配置(使用账户密钥进行签名计算)
|
|
|
|
|
|
# API配置
|
|
|
|
|
|
api:
|
2025-09-01 01:54:14 +08:00
|
|
|
|
# 测试环境URL
|
|
|
|
|
|
test-url: https://ttdopen.ctrip.com/api
|
|
|
|
|
|
# 生产环境URL
|
|
|
|
|
|
prod-url: https://ttdentry.ctrip.com/ttd-connect-orderentryapi/supplier
|
|
|
|
|
|
# 当前环境(test/prod)
|
2025-09-01 15:25:07 +08:00
|
|
|
|
environment: prod
|
2025-08-07 16:13:04 +08:00
|
|
|
|
timeout: 30000 # 请求超时时间(毫秒)
|
|
|
|
|
|
retry-times: 3 # 重试次数
|
|
|
|
|
|
# 账户配置
|
|
|
|
|
|
account:
|
2025-09-01 15:25:07 +08:00
|
|
|
|
id: e02647943fdfb4c5 # 为实际的账户ID
|
|
|
|
|
|
secret: 0b4f4dabb50999cb04a773fc96f81499 # 实际的账户密钥
|