application.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. spring:
  2. profiles:
  3. active: prod
  4. application:
  5. name: admin
  6. datasource:
  7. druid: #以下是全局默认值,可以全局更改
  8. #监控统计拦截的filters
  9. filters: stat,slf4j
  10. #配置初始化大小/最小/最大
  11. initial-size: 2
  12. min-idle: 2
  13. max-active: 20
  14. #获取连接等待超时时间
  15. max-wait: 60000
  16. #间隔多久进行一次检测,检测需要关闭的空闲连接
  17. time-between-eviction-runs-millis: 60000
  18. #一个连接在池中最小生存的时间
  19. min-evictable-idle-time-millis: 300000
  20. validation-query: SELECT 'x'
  21. test-while-idle: true
  22. test-on-borrow: false
  23. test-on-return: false
  24. #打开PSCache,并指定每个连接上PSCache的大小。oracle设为true,mysql设为false。分库分表较多推荐设置为false
  25. pool-prepared-statements: false
  26. max-pool-prepared-statement-per-connection-size: 20
  27. dynamic:
  28. primary: db-admin
  29. strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
  30. datasource:
  31. db-admin:
  32. url: jdbc:mysql://121.40.98.15:3307/charge_admin?tinyInt1isBit=false&serverTimezone=Asia/Shanghai
  33. username: root
  34. password: 123456
  35. driver-class-name: com.mysql.cj.jdbc.Driver
  36. db-miniapp:
  37. url: jdbc:mysql://121.40.98.15:3307/charge_app
  38. username: root
  39. password: 123456
  40. driver-class-name: com.mysql.cj.jdbc.Driver
  41. main:
  42. allow-circular-references: true
  43. data:
  44. redis:
  45. port: 6380
  46. host: 121.40.98.15
  47. password: 123456
  48. database: 2
  49. cache:
  50. type: redis
  51. redis:
  52. # 缓存过期时间:7天
  53. time-to-live: 604800
  54. #mybatis:
  55. # mapper-locations: classpath:mappers/*.xml
  56. # type-aliases-package: com.kym.charge.entity
  57. # configuration:
  58. # map-underscore-to-camel-case: true #下划线转驼峰
  59. server:
  60. port: 8080
  61. servlet:
  62. context-path: /admin
  63. # PageHelper
  64. pagehelper:
  65. propertyName: propertyValue
  66. reasonable: false
  67. defaultCount: true # 分页插件默认参数支持 default-count 形式,自定义扩展的参数,必须大小写一致
  68. mybatis-plus:
  69. mapper-locations: classpath:mappers/admin/*.xml
  70. type-aliases-package: com.kym.entity.admin
  71. sa-token:
  72. # jwt秘钥
  73. jwt-secret-key: 12345678
  74. # token 名称(同时也是 cookie 名称)
  75. token-name: satoken
  76. # token 有效期(单位:秒) 默认30分钟,-1 代表永久有效
  77. timeout: -1
  78. # token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
  79. active-timeout: -1
  80. # 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
  81. is-concurrent: true
  82. # 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)
  83. is-share: true
  84. # token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
  85. token-style: uuid
  86. # 是否输出操作日志
  87. is-log: true
  88. # 微信支付
  89. wechat:
  90. payment:
  91. appid: wx369fcff95d387bde
  92. # 微信商户号
  93. mchid: 1635831469
  94. mchsn: 6A45EEB068369430B2FFD45EA29F641A8E18165F
  95. v3Key: iTRovdvaTUQq0b9Jr91D7Tx66JnIes5U
  96. notifyUrl: https://www.kuaiyuman.cn/api/payment/notify
  97. # certPath: /data/wwwroot/charge/config/cert/apiclient_cert.pem
  98. # keyPath: /data/wwwroot/charge/config/cert/apiclient_key.pem
  99. certPath: cert/apiclient_cert.pem
  100. keyPath: cert/apiclient_key.pem
  101. miniapp:
  102. appid: wx369fcff95d387bde
  103. secret: e36560b99afd5f744754cd09e8f6cc2a
  104. # 以下需要先开通消息推送
  105. token: #微信小程序消息服务器配置的token
  106. aesKey: #微信小程序消息服务器配置的EncodingAESKey
  107. msgDataFormat: JSON
  108. #文件上传配置
  109. upload:
  110. file:
  111. storage: file_storage #文件存放地址
  112. size: 20 #最大上传Mb
  113. oss:
  114. endpoint: oss-cn-shenzhen.aliyuncs.com
  115. keyId:
  116. keySecret:
  117. bucket: kym-static
  118. prefix: static.kuaiyuman.cn