123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- #---------- Spring Boot 项目 ----------#
- # 项目配置
- app:
- name: cuspay
- description: ${app.name} is a Spring Boot application
- # 服务配置
- server:
- address: 127.0.0.1
- port: 8080
- servlet:
- context-path: /
- ds:
- worker-id: 1
- datacenter-id: 1
- # 使用环境
- spring:
- profiles:
- active:
- # 使用CGLIB实现AOP
- aop:
- proxy-target-class: true
- # 数据源
- datasource:
- primary:
- # 数据源zaxxer HikariCP
- type: com.zaxxer.hikari.HikariDataSource
- driver-class-name: org.mariadb.jdbc.Driver
- url: jdbc:mysql://120.76.84.45:3306/cuspay?useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull
- username: ceshi
- password: abc-123
- # hikari连接池配置
- hikari:
- connection-timeout: 10000
- validation-timeout: 5000
- idle-timeout: 600000
- max-lifetime: 1200000
- maximum-pool-size: 3
- minimum-idle: 3
- redis:
- # JedisCluster
- jedis-cluster:
- # Redis Cluster 主机列表
- redis-cluster-host-list:
- - host: 127.0.0.1
- port: 7000
- - host: 127.0.0.1
- port: 7001
- - host: 127.0.0.1
- port: 7002
- - host: 127.0.0.1
- port: 7003
- - host: 127.0.0.1
- port: 7004
- - host: 127.0.0.1
- port: 7005
- # - host: qhdswl.f3322.net
- # port: 7000
- # - host: qhdswl.f3322.net
- # port: 7001
- # - host: qhdswl.f3322.net
- # port: 7002
- # - host: qhdswl.f3322.net
- # port: 7003
- # - host: qhdswl.f3322.net
- # port: 7004
- # - host: qhdswl.f3322.net
- # port: 7005
- # 连接超时时间(秒), 默认 2*1000
- connection-timeout: 5000
- max-attempts: 5
- pool-config:
- max-total: 8
- max-idle: 8
- min-idle: 0
- # mybatis config 多数据源
- mybatis:
- primary:
- # 加载MyBatis配置文件
- config-location: classpath:mybatis/mybatis-config.xml
- mapper-locations: classpath:mybatis/mapper/**/*.xml
- type-aliases-package: com.emato.cuspay
- wx:
- payment:
- declare:
- url: https://api.mch.weixin.qq.com/cgi-bin/mch/customs/customdeclareorder
- query:
- url: https://api.mch.weixin.qq.com/cgi-bin/mch/customs/customdeclarequery
- db:
- merch:
- notice:
- limit: 20
- count: 2
- wx:
- #定时器报关一次区的数据
- declare:
- limit: 20
|