application.yml 3.1 KB

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