spring: datasource: # 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} driver-class-name: com.mysql.cj.jdbc.Driver mybatis-plus: mapper-locations: classpath:/mapper/*Mapper.xml #实体扫描,多个package用逗号或者分号分隔 typeAliasesPackage: com.central.coupon.model # configuration: # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl global-config: db-config: id-type: auto 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: # 禁用分布式锁 lock: lockerType: NONE # 日志配置 logging: level: com.central.order.controller.OrderFileController: DEBUG com.central.coupon.util.CtripDecryptUtil: DEBUG # 携程API配置 ctrip: # AES加密配置 aes: key: 087b36ad0dff7942 # 请替换为实际的AES密钥 iv: 750e15a31356a99d # 请替换为实际的AES IV # 签名配置(使用账户密钥进行签名计算) # API配置 api: base-url: https://ttdopen.ctrip.com/api # 携程API基础URL timeout: 30000 # 请求超时时间(毫秒) retry-times: 3 # 重试次数 # 账户配置 account: id: c50a8f2a4a59c9e7 # 请替换为实际的账户ID secret: ce6033ae31124ec5cdab3d2bc79f2622 # 请替换为实际的账户密钥