server: port: 8083 servlet: context-path: /yczyy #部署数据中心的ID,datacenter-id(0~31) + instance-id(0~31) 不可重复,可唯一确认一个在运行实例 datacenter-id: 1 #部署实例的ID instance-id: 1 spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver 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 username: root password: 'root' type: com.zaxxer.hikari.HikariDataSource hikari: minimum-idle: 5 maximum-pool-size: 100 auto-commit: true idle-timeout: 30000 pool-name: DatebookHikariCP max-lifetime: 1800000 connection-timeout: 30000 connection-test-query: SELECT 1 servlet: multipart: max-file-size: 1024MB max-request-size: 1024MB #配置redis redis: host: 127.0.0.1 port: 6379 password: 'yczyy1234' jedis: pool: max-active: 100 max-idle: 10 max-wait: 100000 timeout: 20000 api: #是否启用流控 server.flowcontrol.enabled: true #流控,每台负载每分钟最大流量 server.flowcontrol.max-requests: 300000 minio: endpoint: http://47.96.70.53:9000 accessKey: admin secretKey: admin123456 img-bucket-name: demo jwt: secret: com.xiaolatech ##token过期时间 2小时 expiration-seconds: 86400 ##refresh token过期时间 7天 refresh-expiration-seconds: 604800 mybatis-plus: #mapper-locations: classpath:mapper/**/*Mapper.xml # 在classpath前添加星号可以使项目热加载成功 mapper-locations: classpath*:mapper/**/*Mapper.xml #实体扫描,多个package用逗号或者分号分隔 typeAliasesPackage: com.nantong.fire.mapper.entity global-config: #主键类型 用户自己输入 id-type: 2 db-config: # 逻辑已删除值(默认为 1) logic-delete-value: 1 # 逻辑未删除值(默认为 0) logic-not-delete-value: 0 #字段策略:null判断,为null的字段不更新 field-strategy: not_null configuration: map-underscore-to-camel-case: true cache-enabled: false # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用 log-impl: org.apache.ibatis.logging.stdout.StdOutImpl logging: config: classpath:config/logback.xml socket-io: server-url: http://127.0.0.1:9090 ibms: httpUrl: http://192.167.5.251:9900 user: platUser psw: E10ADC3949BA59ABBE56E057F20F883E