application-mld.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. # 重庆美莱德服务器配置
  2. server:
  3. port: 10010
  4. tomcat:
  5. uri-encoding: utf-8
  6. max-http-form-post-size: -1
  7. connection-timeout: 18000000s
  8. spring:
  9. servlet:
  10. multipart:
  11. # 配置上传文件的大小设置
  12. # Single file max size 即单个文件大小
  13. max-file-size: 100MB
  14. max-request-size: 100MB
  15. datasource:
  16. driver-class-name: com.mysql.cj.jdbc.Driver
  17. url: jdbc:mysql://10.1.10.33:3306/man_mld?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&&useSSL=false
  18. username: root
  19. password: Mld2022@#
  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: error
  52. java.sql: error
  53. org.springframework.web: error
  54. #打印sql语句
  55. com.management.platform.mapper: error
  56. path: /log/
  57. file: worktime.log
  58. ##########
  59. mybatis-plus:
  60. # mapper-locations: classpath:mapper/*/*.xml
  61. # #实体扫描,多个package用逗号或者分号分隔
  62. # typeAliasesPackage: com.hssx.cloudmodel
  63. global-config:
  64. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  65. id-type: 0
  66. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  67. field-strategy: 2
  68. db-column-underline: true
  69. refresh-mapper:
  70. #################插入和更新非null判断
  71. db-config:
  72. insert-strategy: not_null
  73. update-strategy: not_null
  74. configuration:
  75. map-underscore-to-camel-case: true
  76. cache-enabled: false
  77. ######mybstis配置#######
  78. mybatis:
  79. type-aliases-package: com.management.platform.entity
  80. mapper-locations: mappers/*Mapper.xml
  81. #####配置图片上传路径####
  82. upload:
  83. path: /www/staticproject/timesheet/upload/
  84. ##actuator健康检查配置
  85. management:
  86. security:
  87. enabled:false:
  88. server:
  89. port: 10011
  90. # endpoints:
  91. # web:
  92. # exposure:
  93. # include: "*"
  94. health:
  95. redis:
  96. enabled: false
  97. configEnv:
  98. isDev: false
  99. # 是否是私有化部署,企业内部应用
  100. isPrivateDeploy: true