application.yml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. server:
  2. port: 10010
  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: 10000MB
  13. max-request-size: 10000MB
  14. location: D:/upload/
  15. datasource:
  16. driver-class-name: com.mysql.cj.jdbc.Driver
  17. url: jdbc:mysql://118.190.47.230:3306/man_hour_manager?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
  18. username: root
  19. password: p011430seya1026
  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: E:/
  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: D:/upload/