application.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. server:
  2. port: 10030
  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://1.94.62.58:17089/course_manager?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. ####全局配置时间返回格式#####
  28. jackson:
  29. #参数意义:
  30. #JsonInclude.Include.ALWAYS 默认
  31. #JsonInclude.Include.NON_DEFAULT 属性为默认值不序列化
  32. #JsonInclude.Include.NON_EMPTY 属性为 空(””) 或者为 NULL 都不序列化
  33. #JsonInclude.Include.NON_NULL 属性为NULL 不序列化
  34. default-property-inclusion: ALWAYS
  35. time-zone: GMT+8
  36. date-format: yyyy-MM-dd HH:mm:ss
  37. ##########日志配置
  38. logging:
  39. level:
  40. root: info
  41. org.mybatis: debug
  42. java.sql: debug
  43. org.springframework.web: trace
  44. #打印sql语句
  45. com.management.platform.mapper: debug
  46. path: C:/
  47. ##########
  48. mybatis-plus:
  49. # mapper-locations: classpath:mapper/*/*.xml
  50. # #实体扫描,多个package用逗号或者分号分隔
  51. # typeAliasesPackage: com.hssx.cloudmodel
  52. global-config:
  53. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  54. id-type: 0
  55. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  56. field-strategy: 2
  57. db-column-underline: true
  58. refresh-mapper:
  59. #################插入和更新非null判断
  60. db-config:
  61. insert-strategy: not_null
  62. update-strategy: not_null
  63. configuration:
  64. map-underscore-to-camel-case: true
  65. cache-enabled: false
  66. ######mybstis配置#######
  67. mybatis:
  68. type-aliases-package: com.management.platform.entity
  69. mapper-locations: mappers/*Mapper.xml
  70. #####配置图片上传路径####
  71. upload:
  72. path: C:/upload/
  73. logDownLoad:
  74. path: C:/upload/wt_print.log
  75. ##actuator健康检查配置
  76. management:
  77. security:
  78. enabled:false:
  79. server:
  80. port: 10019
  81. # endpoints:
  82. # web:
  83. # exposure:
  84. # include: "*"
  85. health:
  86. redis:
  87. enabled: false
  88. referer:
  89. refererDomain:
  90. - localhost
  91. - ttkuaiban.com
  92. - ops.ttkuaiban.com
  93. - 47.101.180.183
  94. - mldworktime.ttkuaiban.com
  95. excludeUrls: /wxcorp/*,/wxcorp/*/*,/dingding/*,/error,/testClient,/corpWXAuth,/wx-corp-info/*,/clean/*,/innerRoles/*,/operation-record/*
  96. syncDDMembUrl: http://worktime.ttkuaiban.com/api/dingding/syncCorpMembs