application-prod.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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.100.37.243:7644/man_hour_manager?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&rewriteBatchedStatements=true
  17. username: root
  18. password: Ziyu20141026!@@
  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/octopus_vue/upload/
  83. logDownLoad:
  84. path: /www/webapps/worktime/wt_print.log
  85. ##actuator健康检查配置
  86. management:
  87. security:
  88. enabled:false:
  89. server:
  90. port: 10019
  91. # endpoints:
  92. # web:
  93. # exposure:
  94. # include: "*"
  95. health:
  96. redis:
  97. enabled: false