application-dev.yml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. datasource:
  15. driver-class-name: com.mysql.cj.jdbc.Driver
  16. url: jdbc:mysql://47.101.180.183:3306/man_dev?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&useSSL=false
  17. username: root
  18. password: HuoshiDB@2022
  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: error
  51. java.sql: error
  52. org.springframework.web: error
  53. #打印sql语句
  54. com.management.platform.mapper: error
  55. path: /log/
  56. file: octopus.log
  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: /www/staticproject/timesheet/upload/
  83. ##actuator健康检查配置
  84. management:
  85. security:
  86. enabled:false:
  87. server:
  88. port: 10019
  89. # endpoints:
  90. # web:
  91. # exposure:
  92. # include: "*"
  93. health:
  94. redis:
  95. enabled: false