svr-authentication.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. server:
  2. port: ${server.svr-authentication-port}
  3. spring:
  4. datasource:
  5. driver-class-name: com.mysql.jdbc.Driver
  6. max-active: 20
  7. max-idle: 8
  8. min-idle: 8
  9. validation-query: SELECT 1
  10. test-on-borrow: true
  11. redis:
  12. database: 0 # Database index used by the connection factory.
  13. timeout: 0 # Connection timeout in milliseconds.
  14. pool:
  15. 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.
  16. max-idle: 8 # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
  17. 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.
  18. min-idle: 1 # Target for the minimum number of idle connections to maintain in the pool. This settings only has an effect if it is positive.
  19. user:
  20. autoUnlockTime: 5 #账户锁定后,自动解锁时间 以分钟计算
  21. reflashFailedCountTime: 5 #将失败次数重置为0
  22. tryLoginTimes: 5 #失败重试次数
  23. #logging:
  24. # level:
  25. # org:
  26. # springframework:
  27. # security: DEBUG
  28. ---
  29. spring:
  30. profiles: jwdev
  31. datasource:
  32. url: jdbc:mysql://172.19.103.77/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true
  33. username: root
  34. password: 123456
  35. redis:
  36. host: 172.19.103.88 # Redis server host.
  37. port: 6379 # Redis server port.
  38. # password: jkzl_ehr
  39. ---
  40. spring:
  41. profiles: jwtest
  42. datasource:
  43. url: jdbc:mysql://172.17.110.160/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true
  44. username: ssgg
  45. password: ssgg
  46. redis:
  47. host: 172.19.103.88 # Redis server host.
  48. port: 6379 # Redis server port.
  49. ---
  50. spring:
  51. profiles: jwprod
  52. datasource:
  53. url: jdbc:mysql://172.17.110.160/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true
  54. username: ssgg
  55. password: ssgg
  56. redis:
  57. host: 172.19.103.88 # Redis server host.
  58. port: 6379 # Redis server port.