mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
build: Use redisson-spring-boot-starter dependency instead of redisson dependency
This commit is contained in:
parent
fefa5d94ca
commit
a318b05bee
4
pom.xml
4
pom.xml
@ -23,7 +23,7 @@
|
||||
<xxl-job.version>2.3.1</xxl-job.version>
|
||||
<sentinel.version>1.8.4</sentinel.version>
|
||||
<shardingsphere-jdbc.version>5.1.1</shardingsphere-jdbc.version>
|
||||
<redisson.version>3.17.4</redisson.version>
|
||||
<redisson.version>3.19.1</redisson.version>
|
||||
<spring-boot-admin.version>3.0.0-M1</spring-boot-admin.version>
|
||||
<springdoc-openapi.version>2.0.0</springdoc-openapi.version>
|
||||
</properties>
|
||||
@ -168,7 +168,7 @@
|
||||
<!-- Redisson 相关 -->
|
||||
<dependency>
|
||||
<groupId>org.redisson</groupId>
|
||||
<artifactId>redisson</artifactId>
|
||||
<artifactId>redisson-spring-boot-starter</artifactId>
|
||||
<version>${redisson.version}</version>
|
||||
</dependency>
|
||||
|
||||
|
@ -1,26 +0,0 @@
|
||||
package io.github.xxyopen.novel.core.config;
|
||||
|
||||
import lombok.SneakyThrows;
|
||||
import org.redisson.Redisson;
|
||||
import org.redisson.api.RedissonClient;
|
||||
import org.redisson.config.Config;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* Redisson 配置类
|
||||
*
|
||||
* @author xiongxiaoyang
|
||||
* @date 2022/6/20
|
||||
*/
|
||||
@Configuration
|
||||
public class RedissonConfig {
|
||||
|
||||
@Bean
|
||||
@SneakyThrows
|
||||
public RedissonClient redissonClient() {
|
||||
Config config = Config.fromYAML(getClass().getResource("/redisson.yml"));
|
||||
return Redisson.create(config);
|
||||
}
|
||||
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
singleServerConfig:
|
||||
address: "redis://127.0.0.1:6379"
|
||||
password: 123456
|
Loading…
x
Reference in New Issue
Block a user