application.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. server:
  2. port: 8080
  3. # port: ${server.port}
  4. spring:
  5. #数据源
  6. datasource:
  7. username: root
  8. password: root123
  9. url: jdbc:mysql://191.168.21.17:13306/dataxweb?serverTimezone=Asia/Shanghai&useLegacyDatetimeCode=false&useSSL=false&nullNamePatternMatchesAll=true&useUnicode=true&characterEncoding=UTF-8
  10. # password: ${DB_PASSWORD:password}
  11. # username: ${DB_USERNAME:username}
  12. # url: jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_DATABASE:dataxweb}?serverTimezone=Asia/Shanghai&useLegacyDatetimeCode=false&useSSL=false&nullNamePatternMatchesAll=true&useUnicode=true&characterEncoding=UTF-8
  13. driver-class-name: com.mysql.jdbc.Driver
  14. hikari:
  15. ## 最小空闲连接数量
  16. minimum-idle: 5
  17. ## 空闲连接存活最大时间,默认600000(10分钟)
  18. idle-timeout: 180000
  19. ## 连接池最大连接数,默认是10
  20. maximum-pool-size: 10
  21. ## 数据库连接超时时间,默认30秒,即30000
  22. connection-timeout: 30000
  23. connection-test-query: SELECT 1
  24. ##此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
  25. max-lifetime: 1800000
  26. # datax-web email
  27. mail:
  28. host: smtp.qq.com
  29. port: 25
  30. username: xxx@qq.com
  31. password: xxx
  32. # username: ${mail.username}
  33. # password: ${mail.password}
  34. properties:
  35. mail:
  36. smtp:
  37. auth: true
  38. starttls:
  39. enable: true
  40. required: true
  41. socketFactory:
  42. class: javax.net.ssl.SSLSocketFactory
  43. management:
  44. health:
  45. mail:
  46. enabled: false
  47. server:
  48. servlet:
  49. context-path: /actuator
  50. mybatis-plus:
  51. # mapper.xml文件扫描
  52. mapper-locations: classpath*:/mybatis-mapper/*Mapper.xml
  53. # 实体扫描,多个package用逗号或者分号分隔
  54. #typeAliasesPackage: com.yibo.essyncclient.*.entity
  55. global-config:
  56. # 数据库相关配置
  57. db-config:
  58. # 主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  59. id-type: AUTO
  60. # 字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断"
  61. field-strategy: NOT_NULL
  62. # 驼峰下划线转换
  63. column-underline: true
  64. # 逻辑删除
  65. logic-delete-value: 0
  66. logic-not-delete-value: 1
  67. # 数据库类型
  68. db-type: mysql
  69. banner: false
  70. # mybatis原生配置
  71. configuration:
  72. map-underscore-to-camel-case: true
  73. cache-enabled: false
  74. call-setters-on-nulls: true
  75. jdbc-type-for-null: 'null'
  76. type-handlers-package: com.wugui.datax.admin.core.handler
  77. # 配置mybatis-plus打印sql日志
  78. logging:
  79. level:
  80. com.wugui.datax.admin.mapper: info
  81. path: ./data/applogs/admin
  82. # level:
  83. # com.wugui.datax.admin.mapper: error
  84. # path: ${data.path}/applogs/admin
  85. #datax-job, access token
  86. datax:
  87. job:
  88. accessToken:
  89. #i18n (default empty as chinese, "en" as english)
  90. i18n:
  91. ## triggerpool max size
  92. triggerpool:
  93. fast:
  94. max: 200
  95. slow:
  96. max: 100
  97. ### log retention days
  98. logretentiondays: 30
  99. datasource:
  100. aes:
  101. key: AD42F6697B035B75