Install

LOKIopen in new window Based on JDK8, support SpringBoot 2.x, 3.x.

SpringBoot 2.x/3.x

All-dependent installation

All-dependent inclusion RocketMQ、Kafka、Redis

<dependency>
    <groupId>com.github.guoshiqiufeng</groupId>
    <artifactId>loki-spring-boot-starter</artifactId>
    <version>1.2.1</version>
</dependency>
implementation 'com.github.guoshiqiufeng:loki-spring-boot-starter:1.2.1'
implementation group: 'com.github.guoshiqiufeng', name: 'loki-spring-boot-starter', version: '1.2.1'

RocketMQ(gRPC) dependency installation

Support RocketMQ 5.X

<dependency>
    <groupId>com.github.guoshiqiufeng</groupId>
    <artifactId>loki-spring-boot-starter-rocketmq</artifactId>
    <version>1.2.1</version>
</dependency>
implementation 'com.github.guoshiqiufeng:loki-spring-boot-starter-rocketmq:1.2.1'
implementation group: 'com.github.guoshiqiufeng', name: 'loki-spring-boot-starter-rocketmq', version: '1.2.1'

RocketMQ(Remoting) dependency installation

Support RocketMQ 4.X、5.X

<dependency>
    <groupId>com.github.guoshiqiufeng</groupId>
    <artifactId>loki-spring-boot-starter-rocketmq-remoting</artifactId>
    <version>1.2.1</version>
</dependency>
implementation 'com.github.guoshiqiufeng:loki-spring-boot-starter-rocketmq-remoting:1.2.1'
implementation group: 'com.github.guoshiqiufeng', name: 'loki-spring-boot-starter-rocketmq-remoting', version: '1.2.1'

Kafka dependency installation

<dependency>
    <groupId>com.github.guoshiqiufeng</groupId>
    <artifactId>loki-spring-boot-starter-kafka</artifactId>
    <version>1.2.1</version>
</dependency>
implementation 'com.github.guoshiqiufeng:loki-spring-boot-starter-kafka:1.2.1'
implementation group: 'com.github.guoshiqiufeng', name: 'loki-spring-boot-starter-kafka', version: '1.2.1'

Redis dependency installation

Support Redis 5.X UP

<dependency>
    <groupId>com.github.guoshiqiufeng</groupId>
    <artifactId>loki-spring-boot-starter-redis</artifactId>
    <version>1.2.1</version>
</dependency>
implementation 'com.github.guoshiqiufeng:loki-spring-boot-starter-redis:1.2.1'
implementation group: 'com.github.guoshiqiufeng', name: 'loki-spring-boot-starter-redis', version: '1.2.1'

Bom

<dependencyManagement>
   <dependencies>
       <dependency>
            <groupId>io.github.guoshiqiufeng</groupId>
            <artifactId>loki-bom</artifactId>
            <version>1.2.1</version>
            <type>pom</type>
            <scope>import</scope>
       </dependency>
   </dependencies>
</dependencyManagement>
dependencies {
    implementation platform("io.github.guoshiqiufeng:loki-bom:1.2.1")
}