Spring Boot 2/3

loki:
  global-config:
    mq-config:

GlobalConfig

  • Type: boolean
  • Default: true

Controls whether LOKI logo is output

mqConfig

  • Type:io.github.guoshiqiufeng.loki.support.core.config.MqConfig
  • Default: None

Control link unified configuration, initializing default configuration when spring boot starts, please refer to the details MqConfig

redisHistoryDelayMessageSend

  • Type: boolean
  • Default:false

Whether to enable the sending of delayed messages in Redis (resending expired undelivered delayed messages when the system starts), not enabled by default.

redisHistoryDelayMessageSendTime

  • Type: long
  • Default: 2000

Redis historical delayed message sends a delay time in milliseconds, defaulting to 2000 milliseconds.

MqConfig

mqType

  • Type:io.github.guoshiqiufeng.loki.enums.MqType
  • Default:ROCKET_MQ
OptionsRemark
ROCKET_MQrocketmq (support 5.x)
ROCKET_MQ_REMOTINGrocketmq remoting (support 4.x,5.x)
KAFKAkafka
REDISredis

address

  • Type:java.lang.String
  • Default: None

mq connect address

auth

  • Type:java.lang.Boolean
  • Default:false

Enable authentication

username

  • Type:java.lang.String
  • Default: None

User name, required when auth is true

password

  • Type:java.lang.String
  • Default: None

Password, required if auth is true

connectTimeout

  • Type:int
  • Default:180

Connection time out, in seconds

maxAttempts

  • Type:int
  • Default:3

Maximum number of retries