application-dev.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. server:
  2. port: 8081
  3. spring:
  4. datasource:
  5. # 外网
  6. url: jdbc:mysql://rm-uf632y0g7ed0y3i9xyo.mysql.rds.aliyuncs.com:3306/fhm_xiaomai_jisu?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
  7. username: youbaidi2021
  8. password: baisong@2021
  9. driver-class-name: com.mysql.jdbc.Driver
  10. type: com.zaxxer.hikari.HikariDataSource
  11. # 下面为连接池的补充设置,应用到上面所有数据源中
  12. # 初始化大小,最小,最大
  13. max-idle: 10
  14. max-wait: 1000
  15. min-idle: 5
  16. initial-size: 5
  17. output.ansi.enabled: always
  18. # 配置druid
  19. druid:
  20. # 配置获取连接等待超时的时间
  21. maxWait: 60000
  22. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  23. timeBetweenEvictionRunsMillis: 60000
  24. minEvictableIdleTimeMillis: 300000
  25. validationQuery: SELECT 1 FROM user
  26. testWhileIdle: true
  27. testOnBorrow: true
  28. testOnReturn: false
  29. # 打开PSCache,并且指定每个连接上PSCache的大小
  30. poolPreparedStatements: true
  31. maxPoolPreparedStatementPerConnectionSize: 20
  32. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  33. filters: stat,wall,log4j
  34. connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  35. # 合并多个DruidDataSource的监控数据
  36. #useGlobalDataSourceStat: true
  37. # Redis
  38. #数据库索引(默认为0)
  39. redis:
  40. database: 0
  41. # Redis服务器地址
  42. host: r-uf6s2bntltbncgcxtfpd.redis.rds.aliyuncs.com
  43. # Redis服务器连接端口
  44. port: 6379
  45. # Redis服务器连接密码(默认为空)
  46. password: baisong@2021
  47. # 连接超时时间(毫秒)
  48. timeout: 1000
  49. block-when-exhausted: true
  50. # 连接池最大连接数(使用负值表示没有限制)
  51. pool:
  52. max-active: 1024
  53. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  54. max-wait: 10000
  55. # 连接池中的最大空闲连接
  56. max-idle: 200
  57. # 连接池中的最小空闲连接
  58. min-idle: 0
  59. #返回时间处理
  60. jackson:
  61. date-format: yyyy-MM-dd HH:mm:ss
  62. #rabbitMq配置
  63. rabbitmq:
  64. application:
  65. name: stream-rabbitmq-producer
  66. host: amqp-cn-n6w24h52001y.mq-amqp.cn-shanghai-867405-a.aliyuncs.com
  67. port: 5672
  68. username: LTAI5tMh7AirYwG4Gz1rqZ6V
  69. password: 3QJBePoQrd9RlgCyfBbOKc1CzfROmT
  70. virtual-host: youbaidi_dev
  71. publisher-confirms: true
  72. publisher-returns: true
  73. listener:
  74. simple:
  75. acknowledge-mode: manual
  76. concurrency: 10
  77. max-concurrency: 20
  78. retry:
  79. #是否支持重试
  80. enabled: true
  81. prefetch: 250
  82. #短信发送消息
  83. smsQueueName: sms_queue
  84. smsRoutingKey: sms_key
  85. smsExchangeName: sms_exchange
  86. #手机号同步
  87. phoneQueueName: phone_lib_queue
  88. phoneExchangeName: phone_lib_exchange
  89. phoneRoutingKey: phone_lib_key
  90. #快递发送第三方信息
  91. expressQueue: express_queue
  92. expressExchange: express_exchange
  93. expressKey: express_key
  94. #微信签收提醒
  95. wechatQueue: wechat_queue
  96. wechatExahcange: wechat_exahcange
  97. wechatKey: wechat_key
  98. #mybatis配置
  99. mybatis:
  100. mapper-locations: classpath:com/parksong/mapper/*/*.xml
  101. type-aliases-package: com.parksong.beans
  102. #xxl-job配置
  103. xxl:
  104. job:
  105. admin:
  106. addresses: http://xxljob.fengzhan100.com/xxl-job-admin
  107. executor:
  108. appname: gp-exp-server
  109. ip:
  110. port: 2336
  111. logpath: /data/applogs/xxl-job/jobhandler
  112. logretentiondays: 10
  113. accessToken:
  114. #guoanFtp
  115. #ftp:
  116. url: 120.55.56.222
  117. port: 21
  118. username: fz2018
  119. password: Fz_2018_ftptrans
  120. #系统配置
  121. fastdfs:
  122. tracker_http: 172.19.0.161:22122/
  123. #微信配置
  124. wechat:
  125. weChatKey: YOUBAIMIyoubaimi12345678qwertyui
  126. appId: wxa81b778220fd83f7
  127. weChatApi: https://api.weixin.qq.com
  128. mch_id: 1611844958
  129. shopKey: 1611844958
  130. secret: fcff3120b3042c6ea377df98c948f70a