server: port: 38104 spring: datasource: url: jdbc:mysql://${MYSQL_URL:172.23.255.62:3306}/rainyhon?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&serverTimezone=GMT%2B8&useSSL=false username: ${MYSQL_USER:root} password: ${MYSQL_PASSWORD:yelink123} driver-class-name: com.mysql.cj.jdbc.Driver hikari: max-lifetime: 600000 flyway: enabled: true locations: classpath:db/migration out-of-order: true redis: database: 12 host: ${REDIS_URL:172.23.255.62} port: 6379 jedis: pool: min-idle: 8 max-idle: 500 max-active: 2000 max-wait: 10000 timeout: 5000 main: allow-bean-definition-overriding: true jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 default-property-inclusion: non_null jpa: open-in-view: true hibernate: ddl-auto:jpa: validate kafka: listener: concurrency: 1 missing-topics-fatal: false # 设置批量消费 # type=batch bootstrap-servers: ${KAFKACLOUD_URL:172.23.255.62:9092} producer: retries: 3 # 应答级别:多少个分区副本备份完成时向生产者发送ack确认(可选0、1、all/-1) acks: 1 # 批量大小 batch-size: 16384 # 提交延时 properties: linger: ms: 0 # 当生产端积累的消息达到batch-size或接收到消息linger.ms后,生产者就会将消息提交给kafka # linger.ms为0表示每接收到一条消息就提交给kafka,这时候batch-size其实就没用了 # 生产端缓冲区大小 buffer-memory: 33554432 # Kafka提供的序列化和反序列化类 key-serializer: org.apache.kafka.common.serialization.StringSerializer value-serializer: org.apache.kafka.common.serialization.StringSerializer ###########【初始化消费者配置】########### # 默认的消费组ID consumer: # 是否自动提交offset enable-auto-commit: true # 提交offset延时(接收到消息后多久提交offset) auto-commit-interval: 1000 auto-offset-reset: latest properties: group.id: consumer-group-example # 消费会话超时时间(超过这个时间consumer没有发送心跳,就会触发rebalance操作) session: timeout.ms: 120000 # 消费请求超时时间 request: timeout.ms: 180000 # Kafka提供的序列化和反序列化类 key-deserializer: org.apache.kafka.common.serialization.StringDeserializer value-deserializer: org.apache.kafka.common.serialization.StringDeserializer # 批量消费每次最多消费多少条消息 # max-poll-records=50 doc: enable: true title: ${spring.application.name}文档 base-package: com.rainyhon.swput3.web.controller description: swput3 doc name: swput3 email: swput3@example.com url: https://example.com version: 1.0-SNAPSHOT app: security: enable: true anon-uris: /v2/api-docs-ext,/actuator/**,/swagger-ui.html,/webjars/**,/swagger-resources/**,/v2/api-docs/**,/call/service/api access-key-id: ${ACCESS_KEY:DJPE3QJ07OXPAFFJGORO} access-key-secret: ${ACCESS_KEY_SECRET:sFjISWRruGQjJLCZYiEwomqEpBCNiE3HBaYixZFl} keycloak: auth-server-url: ${AUTH_URL:http://172.23.255.62:8411/auth} realm: ${KEYCLOAK_REALM:edge} principal-attribute: preferred_username use-resource-role-mappings: false ssl-required: none enable-basic-auth: true resource: ${CLIENT_ID:iot} credentials: secret: ${CLIENT_SECRET:de512cc3-1208-4c3c-a389-8637774eee56} enabled: ${app.security.enable} minio: bucket: ${MINIO_BUCKET:oss-public} access-key: ${MINIO_ACCESS_KEY:miniouser} secret-key: ${MINIO_SECRET_KEY:yelink123} endpoint: ${MINIO_ENDPOINT:http://172.23.255.62:28301} application-name: ${MINIO_PREFIX_NAME:example} openapi: edge-gateway-url: ${EDGE_GATEWAY_URL:https://172.23.255.62:8301}