application.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. server:
  2. port: 8081
  3. spring:
  4. profiles:
  5. # active: dev
  6. active: prod
  7. # JSON配置
  8. jackson:
  9. default-property-inclusion: non_null
  10. date-format: yyyy-MM-dd HH:mm:ss
  11. time-zone: GMT+8
  12. datasource:
  13. druid:
  14. #连接初始化数量
  15. initial-size: 1
  16. #连接池中的最小空闲连接数
  17. min-idle: 1
  18. #配置连接池同时能维持的最大连接数
  19. max-active: 20
  20. #获取连接等待超时时间,单位是毫秒
  21. # max-wait: 60000
  22. #间隔多久进行一次检测,检测需要关闭的空闲连接
  23. time-between-eviction-runs-millis: 60000
  24. #一个连接在池中最小生存的时间,单位是毫秒
  25. min-evictable-idle-time-millis: 300000
  26. #一个连接在池中最大生存的时间,单位是毫秒
  27. max-evictable-idle-time-millis: 900000
  28. #Druid用来测试连接是否可用的SQL语句
  29. validation-query: SELECT 'x' FROM DUAL
  30. #申请连接的时候检测
  31. test-while-idle: true
  32. #申请连接时执行validationQuery检测连接是否有效
  33. test-on-borrow: true
  34. #归还连接时执行validationQuery检测连接是否有效
  35. test-on-return: false
  36. #是否缓存preparedStatement
  37. pool-prepared-statements: false
  38. #最大缓存
  39. max-pool-prepared-statement-per-connection-size: 20
  40. #监控统计用的filter:stat
  41. filters: stat
  42. #通过connectProperties属性来打开mergeSql功能;慢SQL记录
  43. connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=10000
  44. stat-view-servlet:
  45. #是否关闭druid管理界面
  46. enabled: true
  47. login-username: root
  48. login-password: 123
  49. #是否启用StatFilter默认值false,用于采集 web-jdbc 关联监控的数据。
  50. web-stat-filter:
  51. enabled: true
  52. #排除一些静态资源,以提高效率
  53. exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
  54. #需要监控的 url
  55. url-pattern: "/*"
  56. mybatis-plus:
  57. # xml文件路径
  58. # mapper-locations: classpath:/mapper/**/*.xml,/mapper/*.xml
  59. mapper-locations: mapper/*.xml
  60. #实体扫描,多个package用逗号或者分号分隔
  61. typeAliasesPackage: cc.xiaokuihua.xiaokuihuaentity.analysis.entity
  62. global-config:
  63. #数据库相关配置
  64. db-config:
  65. #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  66. id-type: AUTO
  67. logic-delete-field: isDel
  68. logic-delete-value: 1
  69. logic-not-delete-value: 0
  70. banner: false
  71. #原生配置
  72. configuration:
  73. #数据库字段驼峰下划线转换
  74. map-underscore-to-camel-case: true
  75. cache-enabled: false
  76. call-setters-on-nulls: true
  77. jdbc-type-for-null: 'null'
  78. # 打印sql
  79. # sql只打印到控制台
  80. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  81. # sql 打印到日志和控制台
  82. log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  83. # 分页
  84. pagehelper:
  85. helperDialect: mysql
  86. reasonable: true
  87. supportMethodsArguments: true
  88. params: count=countSql
  89. logging:
  90. config: classpath:logback-spring.xml
  91. xxl:
  92. job:
  93. accessToken: default_token
  94. admin:
  95. addresses: http://127.0.0.1:8800/xxl-job-admin
  96. executor:
  97. appname: alien-xxl-job-executor
  98. address:
  99. ip:
  100. port: 8899
  101. logpath: /data/applogs/xxl-job/jobhandler
  102. logretentiondays: 30
  103. #api key
  104. api:
  105. juhe:
  106. calendar: 195b18c40cf7cd0de6713ff5e4e0cf34