svr-org.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. logging:
  2. level:
  3. com:
  4. netflix: DEBUG
  5. spring:
  6. # REDIS
  7. redis:
  8. database: 0 # Database index used by the connection factory.
  9. host: localhost # Redis server host.
  10. port: 6379 # Redis server port.
  11. password: # Login password of the redis server.
  12. timeout: 0 # Connection timeout in milliseconds.
  13. #sentinel:
  14. # master: # Name of Redis server.
  15. # nodes: # Comma-separated list of host:port pairs.
  16. pool:
  17. max-active: 8 # Max number of connections that can be allocated by the pool at a given time. Use a negative value for no limit.
  18. max-idle: 8 # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
  19. max-wait: -1 # Maximum amount of time (in milliseconds) a connection allocation should block before throwing an exception when the pool is exhausted. Use a negative value to block indefinitely.
  20. min-idle: 1 # Target for the minimum number of idle connections to maintain in the pool. This setting only has an effect if it is positive.
  21. data-source:
  22. driver-class-name: com.mysql.jdbc.Driver
  23. initialize-size: 1
  24. max-total: 20
  25. max-idle: 10
  26. min-idle: 1
  27. validation-query: SELECT 1
  28. test-on-borrow: true
  29. remove-abandoned-timeout: 55
  30. ---
  31. spring:
  32. profiles: dev
  33. redis:
  34. host: 172.19.103.47 # Redis server host.
  35. data-source:
  36. url: jdbc:mysql://192.168.1.220:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  37. user-name: ha
  38. password: ha
  39. ---
  40. spring:
  41. profiles: test
  42. redis:
  43. host: 172.19.103.47 # Redis server host.
  44. data-source:
  45. url: jdbc:mysql://172.19.103.50:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  46. user-name: weifuwu
  47. password: weifuwu
  48. ---
  49. spring:
  50. profiles: prod
  51. redis:
  52. host: 11.1.2.20 # Redis server host.
  53. data-source:
  54. url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  55. user-name: ha
  56. password: jkzlxm