sql.properties 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. spring.datasource.data.jdbc-url=jdbc:postgresql_postGIS://119.96.165.176:5432/watersmart?useSSL=false&useAffectedRows=false&allowMultiQueries=true
  2. spring.datasource.data.username=postgres
  3. spring.datasource.data.password=kpr.23417.postgres
  4. spring.datasource.data.driver-class-name=org.postgis.DriverWrapper
  5. #pgsql 自来水水量预测数据库源
  6. #spring.datasource.db2.jdbc-url=jdbc:postgresql_postGIS://119.96.165.176:5432/water_volume_prediction?useSSL=false&useAffectedRows=false&allowMultiQueries=true
  7. #spring.datasource.db2.username=postgres
  8. #spring.datasource.db2.password=kpr.23417.postgres
  9. #spring.datasource.db2.driver-class-name=org.postgis.DriverWrapper
  10. spring.datasource.db2.jdbc-url=jdbc:postgresql_postGIS://10.101.5.50:5432/water_volume_prediction?useSSL=false&useAffectedRows=false&allowMultiQueries=true
  11. spring.datasource.db2.username=postgres
  12. spring.datasource.db2.password=ygt.23417.postgres
  13. spring.datasource.db2.driver-class-name=org.postgis.DriverWrapper
  14. spring.datasource.data2.jdbc-url=jdbc:postgresql://119.96.165.176:5432/water_smart_central?useSSL=false&useAffectedRows=false&allowMultiQueries=true&useUnicode=true&characterEncoding=utf-8
  15. spring.datasource.data2.username=postgres
  16. spring.datasource.data2.password=kpr.23417.postgres
  17. spring.datasource.data2.driver-class-name=org.postgresql.Driver
  18. spring.datasource.data2.max-wait=60000
  19. spring.datasource.data2.maximum-pool-size=200
  20. spring.datasource.data2.minimum-idle=1
  21. spring.datasource.data2.validation-query=SELECT 1
  22. spring.datasource.data2.connection-test-query=SELECT 1
  23. spring.datasource.data2.test-on-borrow=false
  24. spring.datasource.data2.test-on-return=false
  25. spring.datasource.data2.test-while-idle=true
  26. spring.datasource.data2.max-lifetime=60000
  27. spring.datasource.data2.idle-timeout=30000
  28. spring.datasource.data2.connection-timeout=30000
  29. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  30. spring.datasource.data2.time-between-eviction-runs-millis=60000
  31. # 配置一个连接在池中最小生存的时间,单位是毫秒
  32. spring.datasource.data2.minEvictableIdleTimeMillis=300000
  33. spring.datasource.data.max-wait=60000
  34. spring.datasource.data.maximum-pool-size=200
  35. spring.datasource.data.minimum-idle=1
  36. spring.datasource.data.validation-query=SELECT 1
  37. spring.datasource.data.connection-test-query=SELECT 1
  38. spring.datasource.data.test-on-borrow=false
  39. spring.datasource.data.test-on-return=false
  40. spring.datasource.data.test-while-idle=true
  41. spring.datasource.data.max-lifetime=120000
  42. spring.datasource.data.idle-timeout=30000
  43. spring.datasource.data.connection-timeout=30000
  44. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  45. spring.datasource.data.time-between-eviction-runs-millis=60000
  46. # 配置一个连接在池中最小生存的时间,单位是毫秒
  47. spring.datasource.data.minEvictableIdleTimeMillis=300000