application.yml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. server:
  2. port: 8083
  3. servlet:
  4. context-path: /yczyy
  5. #部署数据中心的ID,datacenter-id(0~31) + instance-id(0~31) 不可重复,可唯一确认一个在运行实例
  6. datacenter-id: 1
  7. #部署实例的ID
  8. instance-id: 1
  9. spring:
  10. datasource:
  11. driver-class-name: com.mysql.cj.jdbc.Driver
  12. url: jdbc:mysql://localhost:3306/yczyy?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&useTimezone=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowMultiQueries=true&allowPublicKeyRetrieval=true&autoReconnect=true&TreatTinyAsBoolean=false&tinyInt1isBit=false
  13. username: root
  14. password: 'root'
  15. type: com.zaxxer.hikari.HikariDataSource
  16. hikari:
  17. minimum-idle: 5
  18. maximum-pool-size: 100
  19. auto-commit: true
  20. idle-timeout: 30000
  21. pool-name: DatebookHikariCP
  22. max-lifetime: 1800000
  23. connection-timeout: 30000
  24. connection-test-query: SELECT 1
  25. servlet:
  26. multipart:
  27. max-file-size: 1024MB
  28. max-request-size: 1024MB
  29. #配置redis
  30. redis:
  31. host: 127.0.0.1
  32. port: 6379
  33. password: 'yczyy1234'
  34. jedis:
  35. pool:
  36. max-active: 100
  37. max-idle: 10
  38. max-wait: 100000
  39. timeout: 20000
  40. api:
  41. #是否启用流控
  42. server.flowcontrol.enabled: true
  43. #流控,每台负载每分钟最大流量
  44. server.flowcontrol.max-requests: 300000
  45. minio:
  46. endpoint: http://47.96.70.53:9000
  47. accessKey: admin
  48. secretKey: admin123456
  49. img-bucket-name: demo
  50. jwt:
  51. secret: com.xiaolatech
  52. ##token过期时间 2小时
  53. expiration-seconds: 86400
  54. ##refresh token过期时间 7天
  55. refresh-expiration-seconds: 604800
  56. mybatis-plus:
  57. #mapper-locations: classpath:mapper/**/*Mapper.xml
  58. # 在classpath前添加星号可以使项目热加载成功
  59. mapper-locations: classpath*:mapper/**/*Mapper.xml
  60. #实体扫描,多个package用逗号或者分号分隔
  61. typeAliasesPackage: com.nantong.fire.mapper.entity
  62. global-config:
  63. #主键类型 用户自己输入
  64. id-type: 2
  65. db-config:
  66. # 逻辑已删除值(默认为 1)
  67. logic-delete-value: 1
  68. # 逻辑未删除值(默认为 0)
  69. logic-not-delete-value: 0
  70. #字段策略:null判断,为null的字段不更新
  71. field-strategy: not_null
  72. configuration:
  73. map-underscore-to-camel-case: true
  74. cache-enabled: false
  75. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  76. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  77. logging:
  78. config: classpath:config/logback.xml
  79. socket-io:
  80. server-url: http://127.0.0.1:9090
  81. ibms:
  82. httpUrl: http://192.167.5.251:9900
  83. user: platUser
  84. psw: E10ADC3949BA59ABBE56E057F20F883E