application.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. server:
  2. port: 10018
  3. tomcat:
  4. uri-encoding: utf-8
  5. max-http-form-post-size: -1
  6. connection-timeout: 18000000s
  7. spring:
  8. servlet:
  9. multipart:
  10. # 配置上传文件的大小设置
  11. # Single file max size 即单个文件大小
  12. max-file-size: 100MB
  13. max-request-size: 100MB
  14. location: C:/upload/
  15. datasource:
  16. driver-class-name: com.mysql.cj.jdbc.Driver
  17. url: jdbc:mysql://47.101.180.183:17089/man_dev?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&rewriteBatchedStatements=true
  18. username: root
  19. password: P011430@Huoshi*
  20. hikari:
  21. maximum-pool-size: 10
  22. minimum-idle: 3
  23. max-lifetime: 30000
  24. connection-test-query: SELECT 1
  25. #######redis配置######
  26. # redis
  27. redis:
  28. host: 127.0.0.1
  29. port: 6379
  30. timeout: 3
  31. # password:
  32. pool:
  33. minIdle: 1
  34. maxIdle: 10
  35. maxWait: 3
  36. maxActive: 8
  37. ####全局配置时间返回格式#####
  38. jackson:
  39. #参数意义:
  40. #JsonInclude.Include.ALWAYS 默认
  41. #JsonInclude.Include.NON_DEFAULT 属性为默认值不序列化
  42. #JsonInclude.Include.NON_EMPTY 属性为 空(””) 或者为 NULL 都不序列化
  43. #JsonInclude.Include.NON_NULL 属性为NULL 不序列化
  44. default-property-inclusion: ALWAYS
  45. time-zone: GMT+8
  46. date-format: yyyy-MM-dd HH:mm:ss
  47. ##########日志配置
  48. logging:
  49. level:
  50. root: info
  51. org.mybatis: debug
  52. java.sql: debug
  53. org.springframework.web: trace
  54. #打印sql语句
  55. com.management.platform.mapper: debug
  56. path: C:/
  57. ##########
  58. mybatis-plus:
  59. # mapper-locations: classpath:mapper/*/*.xml
  60. # #实体扫描,多个package用逗号或者分号分隔
  61. # typeAliasesPackage: com.hssx.cloudmodel
  62. global-config:
  63. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  64. id-type: 0
  65. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  66. field-strategy: 2
  67. db-column-underline: true
  68. refresh-mapper:
  69. #################插入和更新非null判断
  70. db-config:
  71. insert-strategy: not_null
  72. update-strategy: not_null
  73. configuration:
  74. map-underscore-to-camel-case: true
  75. cache-enabled: false
  76. ######mybstis配置#######
  77. mybatis:
  78. type-aliases-package: com.management.platform.entity
  79. mapper-locations: mappers/*Mapper.xml
  80. #####配置图片上传路径####
  81. upload:
  82. path: C:/upload/
  83. logDownLoad:
  84. path: C:/upload/wt_print.log
  85. ##actuator健康检查配置
  86. management:
  87. security:
  88. enabled:false:
  89. server:
  90. port: 10019
  91. # endpoints:
  92. # web:
  93. # exposure:
  94. # include: "*"
  95. health:
  96. redis:
  97. enabled: false
  98. referer:
  99. refererDomain:
  100. - localhost
  101. - ttkuaiban.com
  102. - ops.ttkuaiban.com
  103. - 47.101.180.183
  104. - mldworktime.ttkuaiban.com
  105. excludeUrls: /wxcorp/*,/wxcorp/*/*,/dingding/*,/error,/testClient,/corpWXAuth,/wx-corp-info/*,/clean/*,/innerRoles/*,/operation-record/*
  106. syncDDMembUrl: http://worktime.ttkuaiban.com/api/dingding/syncCorpMembs