springboot2.1.5 和redisson-spring-boot-starter 那个版本
时间: 2023-10-09 08:07:46 浏览: 44
redisson-spring-boot-starter 的版本应该要与 Spring Boot 的版本兼容。根据 Redisson 的官方文档,redisson-spring-boot-starter 3.14.1 版本支持 Spring Boot 2.1.x 版本。因此,如果你使用的是 Spring Boot 2.1.5 版本,建议使用 redisson-spring-boot-starter 3.14.1 版本。
相关问题
springboot2.1.5 和redisson-spring-boot-starter 3.16.0怎么写
你可以在你的Spring Boot项目的pom.xml文件中添加以下依赖:
```xml
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson-spring-boot-starter</artifactId>
<version>3.16.0</version>
</dependency>
```
这样就可以使用Redisson了。同时,你需要在你的application.yml文件中添加Redisson的配置,例如:
```yaml
spring:
redis:
host: localhost
port: 6379
database: 0
redisson:
single-server-config:
address: "redis://localhost:6379"
```
这个配置指定了Redis的地址和Redisson的配置。你需要根据你的实际情况进行修改。
Project 'org.springframework.boot:spring-boot-starter-parent:2.1.5.RELEASE' not found
这错误提示意味着在你的项目中无法找到名为'org.springframework.boot:spring-boot-starter-parent:2.1.5.RELEASE'的项目。
引用提到了可能的解决方案之一,从远程仓库中找到需要的jar包。这意味着你可以尝试从远程仓库下载并安装这个项目。引用提到了检查配置文件中的镜像设置。你可以打开配置文件,并确保其中的镜像设置没有阻止你从远程仓库中找到所需的项目。你也可以考虑在配置文件中添加一个合适的镜像,以确保你能够访问到项目。