application-sgai.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. max-file-size: 100MB
  11. max-request-size: 100MB
  12. datasource:
  13. driver-class-name: com.mysql.cj.jdbc.Driver
  14. url: jdbc:mysql://10.168.54.5:3306/man_sgai?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&useSSL=false
  15. username: sgaigs
  16. password: gs5IP5qfsia#oq5P
  17. hikari:
  18. maximum-pool-size: 60
  19. minimum-idle: 10
  20. max-lifetime: 180000
  21. connection-timeout: 60000
  22. connection-test-query: SELECT 1
  23. #######redis配置######
  24. # redis
  25. redis:
  26. host: 127.0.0.1
  27. port: 6379
  28. timeout: 3
  29. # password:
  30. pool:
  31. minIdle: 1
  32. maxIdle: 10
  33. maxWait: 3
  34. maxActive: 8
  35. ####全局配置时间返回格式#####
  36. jackson:
  37. #参数意义�?
  38. #JsonInclude.Include.ALWAYS 默认
  39. #JsonInclude.Include.NON_DEFAULT 属性为默认值不序列�?
  40. #JsonInclude.Include.NON_EMPTY 属性为 空(””) 或者为 NULL 都不序列�?
  41. #JsonInclude.Include.NON_NULL 属性为NULL 不序列化
  42. default-property-inclusion: ALWAYS
  43. time-zone: GMT+8
  44. date-format: yyyy-MM-dd HH:mm:ss
  45. ##########日志配置
  46. logging:
  47. level:
  48. root: info
  49. org.mybatis: error
  50. java.sql: error
  51. org.springframework.web: error
  52. #打印sql语句
  53. com.management.platform.mapper: error
  54. path: /log/
  55. file: worktime.log
  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: /www/staticproject/timesheet/upload/
  82. referer:
  83. refererDomain:
  84. - localhost
  85. - gsmb.sgai.com.cn
  86. - gspc.sgai.com.cn
  87. ##actuator健康检查配�?
  88. management:
  89. security:
  90. enabled:false:
  91. server:
  92. port: 10011
  93. # endpoints:
  94. # web:
  95. # exposure:
  96. # include: "*"
  97. health:
  98. redis:
  99. enabled: false
  100. configEnv:
  101. isDev: false
  102. isPrivateDeploy: true
  103. privateDeployURL:
  104. pcUrl: http://gspc.sgai.com.cn
  105. mobUrl: http://gsmb.sgai.com.cn
  106. # 私有化部署的企业自己的corpId
  107. corpId: ww69287a3380830fb1