application-release.yml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. server:
  2. # 服务器的HTTP端口,默认为80
  3. port: 9091
  4. spring:
  5. # redis配置
  6. redis:
  7. database: 0
  8. host: 127.0.0.1
  9. port: 6379
  10. password: empress
  11. timeout: 6000ms # 连接超时时长(毫秒)
  12. lettuce:
  13. pool:
  14. max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
  15. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  16. max-idle: 10 # 连接池中的最大空闲连接
  17. min-idle: 5 # 连接池中的最小空闲连接
  18. rabbitmq:
  19. xMsgTtl: 301000
  20. host: 127.0.0.1
  21. port: 5672
  22. username: iamrabbit
  23. password: IAmABigRabbit
  24. virtual-host: prod
  25. # publisher-confirms: true
  26. publisher-confirm-type: correlated
  27. datasource:
  28. type: com.alibaba.druid.pool.DruidDataSource
  29. driverClassName: com.mysql.cj.jdbc.Driver
  30. druid:
  31. publickey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJuY2YFPanMmwVxHazZdOZ/y/LZr1+ZmyzAhstDZ0lCn4Vc3DI7Iw10+w4XJVGD3fnLjFMbPL1ip9eclpTAu6G0CAwEAAQ==
  32. # 主库数据源
  33. master:
  34. url: jdbc:mysql://47.98.144.243:3306/biandan_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8
  35. username: root
  36. #password: $TyH69i4EEG^om!!
  37. password: X8IGlcnhdUcDGawphPHww8z7Xu4a800fhPr9Y6FGquTAAjSsrfhz1+VWYjGyO7pr4Ef5rs4QGpLPA4//mq2gNA==
  38. connectionProperties: config.decrypt=true;config.decrypt.key=${spring.datasource.druid.publickey}
  39. # 从库数据源
  40. slave:
  41. # 从数据源开关/默认关闭
  42. enabled: false
  43. url:
  44. username:
  45. password:
  46. # 初始连接数
  47. initialSize: 5
  48. # 最小连接池数量
  49. minIdle: 10
  50. # 最大连接池数量
  51. maxActive: 200
  52. # 配置获取连接等待超时的时间
  53. maxWait: 60000
  54. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  55. timeBetweenEvictionRunsMillis: 60000
  56. # 配置一个连接在池中最小生存的时间,单位是毫秒
  57. minEvictableIdleTimeMillis: 300000
  58. # 配置一个连接在池中最大生存的时间,单位是毫秒
  59. maxEvictableIdleTimeMillis: 900000
  60. # 配置检测连接是否有效
  61. validationQuery: SELECT 1 FROM DUAL
  62. testWhileIdle: true
  63. testOnBorrow: false
  64. testOnReturn: false
  65. webStatFilter:
  66. enabled: true
  67. statViewServlet:
  68. enabled: true
  69. # 设置白名单,不填则允许所有访问
  70. allow:
  71. url-pattern: /monitor/druid/*
  72. filter:
  73. stat:
  74. enabled: true
  75. # 慢SQL记录
  76. log-slow-sql: true
  77. slow-sql-millis: 1000
  78. merge-sql: true
  79. wall:
  80. config:
  81. multi-statement-allow: true
  82. config:
  83. enabled: true
  84. # 日志配置
  85. logging:
  86. config: classpath:logback-prod.xml
  87. level:
  88. cn.com.wingxi.biandan: info
  89. org.springframework: info
  90. org.apache.http: info
  91. shdzfp:
  92. requestUrl: "http://fw2test.shdzfp.com:15002/sajt-shdzfp-sl-http/SvrServlet"
  93. key: "9oyKs7cVo1yYzkuisP9bhA=="
  94. userName: "P1000001"
  95. authorizationCode: "NH873FG4KW"