svr-dict.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. logging:
  2. level:
  3. com:
  4. netflix: ERROR
  5. spring:
  6. datasource:
  7. driver-class-name: com.mysql.jdbc.Driver
  8. max-active: 20
  9. max-idle: 8
  10. min-idle: 8
  11. validation-query: SELECT 1
  12. test-on-borrow: true
  13. # REDIS
  14. redis:
  15. database: 0 # Database index used by the connection factory.
  16. port: 6379 # Redis server port.
  17. password: # Login password of the redis server.
  18. timeout: 0 # Connection timeout in milliseconds.
  19. #sentinel:
  20. # master: # Name of Redis server.
  21. # nodes: # Comma-separated list of host:port pairs.
  22. pool:
  23. 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.
  24. max-idle: 8 # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
  25. 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.
  26. 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.
  27. ---
  28. spring:
  29. profiles: dev
  30. redis:
  31. host: 192.168.1.220 # Redis server host.
  32. datasource:
  33. url: jdbc:mysql://192.168.1.220:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  34. username: ha
  35. password: ha
  36. ---
  37. spring:
  38. profiles: alpha
  39. redis:
  40. host: 192.168.1.220 # Redis server host.
  41. datasource:
  42. url: jdbc:mysql://192.168.1.220:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  43. username: ha
  44. password: ha
  45. ---
  46. spring:
  47. profiles: test
  48. redis:
  49. host: 172.19.103.47 # Redis server host.
  50. datasource:
  51. url: jdbc:mysql://172.19.103.50:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  52. username: weifuwu
  53. password: weifuwu
  54. ---
  55. spring:
  56. profiles: prod
  57. redis:
  58. host: 11.1.2.20 # Redis server host.
  59. datasource:
  60. url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  61. username: ha
  62. password: jkzlxm