application-dev.yml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. spring:
  2. cloud.discovery.client.simple:
  3. # 配置system服务「system-service」的ip和端口
  4. instances:
  5. system-service:
  6. - host: 39.99.245.43 #地址
  7. port: 6161 #端口
  8. redis:
  9. host: 121.204.253.223
  10. password: ltbiydhao5
  11. port: 6379
  12. database: 9
  13. ssl: false
  14. datasource:
  15. dynamic:
  16. druid:
  17. #配置初始化大小、最小、最大
  18. initial-size: 0
  19. min-idle: 1
  20. max-active: 1
  21. #获取连接时最大等待时间,单位毫秒。配置了maxWait之后,缺省启用公平锁,
  22. max-wait: 60000
  23. #执行查询的超时时间【单位:秒,最终应用到Statement对象的超时】
  24. query-timeout: 10
  25. #一个事务的超时时间
  26. #transaction-query-timeout: 20
  27. #申请连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。
  28. test-on-borrow: true
  29. #归还连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能
  30. test-on-return: false
  31. #设置从连接池获取连接时是否检查连接有效性,true时,如果连接空闲时间超过minEvictableIdleTimeMillis进行检查,否则不检查;false时,不检查
  32. test-while-idle: true
  33. #检查连接的方式和超时时间
  34. validation-query: "select 1"
  35. validation-query-timeout: 2000
  36. #配置间隔多久启动一次DestroyThread,对连接池内的连接才进行一次检测,单位是毫秒。
  37. #检测时: 1.如果连接空闲并且超过minIdle以外的连接,如果空闲时间超过minEvictableIdleTimeMillis设置的值则直接物理关闭。
  38. # 2.在minIdle以内的不处理。
  39. time-between-eviction-runs-millis: 60000
  40. #配置一个连接在池中最小生存的时间
  41. min-evictable-idle-time-millis: 180000
  42. #是否超时关闭连接 默认为false 【若为true 就算数据库恢复连接,也无法连接上】
  43. #break-after-acquire-failure: false
  44. #connection-error-retry-attempts: 1
  45. #time-between-connect-error-millis: 500
  46. #打开KeepAlive之后的效果
  47. #1>初始化连接池时会填充到minIdle数量。
  48. #2>连接池中的minIdle数量以内的连接,空闲时间超过minEvictableIdleTimeMillis,则会执行keepAlive操作。
  49. #3>当网络断开等原因产生的由ExceptionSorter检测出来的死连接被清除后,自动补充连接到minIdle数量。
  50. #连接池中的minIdle数量以内的连接,空闲时间超过minEvictableIdleTimeMillis,则会执行keepAlive操作
  51. #每次检查强制验证连接有效性 https://github.com/alibaba/druid/wiki/KeepAlive_cn
  52. #keepAlive: true
  53. #2次keepAlive操作的时间间隔
  54. #keep-alive-between-time-millis: 50000
  55. filters: slf4j
  56. primary: master
  57. #使用严格模式查询数据源
  58. strict: true
  59. datasource:
  60. master:
  61. driver-class-name: com.mysql.cj.jdbc.Driver
  62. url: jdbc:mysql://125.77.165.122:3307/digital_operation?useSSL=false&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowPublicKeyRetrieval=true
  63. username: root
  64. password: Platomix@mysql123
  65. blade:
  66. mybatis-plus:
  67. sqlLog: true
  68. log:
  69. apiLogEnabled: false
  70. errorLogEnabled: false
  71. usualLogEnabled: false
  72. file:
  73. #数据集文件上传目录
  74. uploadCube: /chroot/www/uploads/cube/
  75. #清单组件数据导出目录
  76. exportComponent: /chroot/www/uploads/component/
  77. #导出大屏快照图片的PDF文件
  78. exportPdf: /chroot/www/uploads/pdf/
  79. #上传jdbc驱动jar包
  80. uploadJdbcDriverJar: /chroot/www/uploads/jdbcDriverJar/
  81. #openfeign配置
  82. openfeign:
  83. #是否校验内网IP
  84. checkInnerIp: false
  85. domain: https://windata.platomix.net
  86. #免登录域名
  87. loginFreeDomain: https://windata.platomix.net
  88. pdfUrl: http://demo.platomix.net/pdf-api/pdf
  89. #神策统计接口相关
  90. analytics:
  91. enabled: false
  92. serviceUrl: http://sp.platomix.net/sdata/sa?project=bi&ptype=bi
  93. mybatis-plus:
  94. configuration:
  95. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  96. xxl:
  97. job:
  98. ### xxl-job, access token
  99. accessToken: platomix_token
  100. admin:
  101. # addresses: http://127.0.0.1:8191/xxl-job-admin
  102. addresses: http://windata.platomix.net/xxl-job-admin
  103. executor:
  104. ### xxl-job executor address
  105. appname: platomix-usergroup
  106. groupid: 7 #对应appname的id值
  107. # ip: ''
  108. ip: '127.0.0.1'
  109. port: 6971
  110. ### xxl-job log retention days
  111. logretentiondays: 30
  112. ### xxl-job log path
  113. logpath: /data/applogs/xxl-job/jobhandler
  114. upload:
  115. external:
  116. path: /Users/hepingguo/Documents/test/webapp/www
  117. init:
  118. source: true
  119. edit: 1