externalDataSources.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. [
  2. {
  3. "enable": false,
  4. "url": "jdbc:mysql://127.0.0.1:3306/X?autoReconnect\u003dtrue\u0026allowPublicKeyRetrieval\u003dtrue\u0026useSSL\u003dfalse\u0026useUnicode\u003dtrue\u0026characterEncoding\u003dUTF-8\u0026useLegacyDatetimeCode\u003dfalse\u0026serverTimezone\u003dGMT%2B8",
  5. "username": "root",
  6. "password": "password",
  7. "driverClassName": "",
  8. "dictionary": "",
  9. "maxTotal": 100.0,
  10. "maxIdle": 0.0,
  11. "statEnable": true,
  12. "statFilter": "mergeStat",
  13. "includes": [],
  14. "excludes": [],
  15. "logLevel": "ERROR",
  16. "transactionIsolation": "read-committed",
  17. "testConnectionOnCheckin": false,
  18. "testConnectionOnCheckout": false,
  19. "maxIdleTime": 300.0,
  20. "autoCommit": false,
  21. "schema": "",
  22. "logStatEnable": false,
  23. "logStatInterval": 180.0,
  24. "slowSqlEnable": true,
  25. "slowSqlThreshold": 3000.0,
  26. "###enable": "是否启用,如果启用多个数据库,那么必须是相同类型的,不能混用,且用户名密码必须一致.###",
  27. "###url": "jdbc连接地址.###",
  28. "###username": "数据库jdbc连接用户名.###",
  29. "###password": "数据库jdbc连接密码.###",
  30. "###driverClassName": "数据库驱动类名.###",
  31. "###dictionary": "方言类.###",
  32. "###maxTotal": "最大使用连接数.###",
  33. "###maxIdle": "最大空闲连接数.###",
  34. "###statEnable": "启用统计,默认启用.###",
  35. "###statFilter": "统计方式配置,默认mergeStat.###",
  36. "###includes": "设置此数据库存储的类,默认情况下存储所有类型,如果需要对每个类进行单独的控制以达到高性能,可以将不同的类存储到不同的节点上提高性能.可以使用通配符*.###",
  37. "###excludes": "在此节点上不存储的类,和includes一起设置实际存储的类,可以使用通配符*.###",
  38. "###logLevel": "默认日志级别,FATAL, ERROR, WARN, INFO, TRACE. 完整的配置为DefaultLevel\u003dWARN, Tool\u003dTRACE, Enhance\u003dTRACE, METADATA\u003dTRACE, Runtime\u003dTRACE, Query\u003dTRACE, DataCache\u003dTRACE, JDBC\u003dTRACE, SQL\u003dTRACE.###",
  39. "###transactionIsolation": "事务隔离级别:default,none,read-uncommitted,read-committed,repeatable-read,serializable.默认使用default(数据库设置的事务级别).###",
  40. "###testConnectionOnCheckin": "测试入池连接,默认false.###",
  41. "###testConnectionOnCheckout": "测试出池连接,默认false.###",
  42. "###maxIdleTime": "空闲阈值,默认300秒.###",
  43. "###autoCommit": "自动提交,默认为false.###",
  44. "###schema": "模式.###",
  45. "###logStatEnable": "启用记录统计日志.###",
  46. "###logStatInterval": "统计日志输出间隔,单位分钟,默认180.###",
  47. "###slowSqlEnable": "是否启用执行慢sql记录.###",
  48. "###slowSqlThreshold": "执行慢sql记录阈值,毫秒数,默认3000毫秒.###",
  49. "###extension": "扩展设置.###"
  50. }
  51. ]