application.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. datasource:
  15. driver-class-name: com.mysql.cj.jdbc.Driver
  16. url: jdbc:mysql://118.190.47.230:3306/man_hour_manager?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
  17. username: root
  18. password: p011430seya1026
  19. hikari:
  20. maximum-pool-size: 10
  21. minimum-idle: 3
  22. max-lifetime: 30000
  23. connection-test-query: SELECT 1
  24. #######redis配置######
  25. # redis
  26. redis:
  27. host: 127.0.0.1
  28. port: 6379
  29. timeout: 3
  30. # password:
  31. pool:
  32. minIdle: 1
  33. maxIdle: 10
  34. maxWait: 3
  35. maxActive: 8
  36. ####全局配置时间返回格式#####
  37. jackson:
  38. #参数意义:
  39. #JsonInclude.Include.ALWAYS 默认
  40. #JsonInclude.Include.NON_DEFAULT 属性为默认值不序列化
  41. #JsonInclude.Include.NON_EMPTY 属性为 空(””) 或者为 NULL 都不序列化
  42. #JsonInclude.Include.NON_NULL 属性为NULL 不序列化
  43. default-property-inclusion: ALWAYS
  44. time-zone: GMT+8
  45. date-format: yyyy-MM-dd HH:mm:ss
  46. ##########日志配置
  47. logging:
  48. level:
  49. root: info
  50. org.mybatis: debug
  51. java.sql: debug
  52. org.springframework.web: trace
  53. #打印sql语句
  54. com.management.platform.mapper: debug
  55. path: E:/
  56. ##########
  57. mybatis-plus:
  58. # mapper-locations: classpath:mapper/*/*.xml
  59. # #实体扫描,多个package用逗号或者分号分隔
  60. # typeAliasesPackage: com.hssx.cloudmodel
  61. global-config:
  62. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  63. id-type: 0
  64. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  65. field-strategy: 2
  66. db-column-underline: true
  67. refresh-mapper:
  68. #################插入和更新非null判断
  69. db-config:
  70. insert-strategy: not_null
  71. update-strategy: not_null
  72. configuration:
  73. map-underscore-to-camel-case: true
  74. cache-enabled: false
  75. ######mybstis配置#######
  76. mybatis:
  77. type-aliases-package: com.management.platform.entity
  78. mapper-locations: mappers/*Mapper.xml
  79. #####配置图片上传路径####
  80. upload:
  81. path: D:/upload/