腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
使用
Spring
Boot
的
redis
中
的
嵌套
键
spring-boot
、
caching
、
java-8
、
redis
我想
使用
quartz在
spring
boot
中
运行一个作业,其中多个线程将执行该方法。我想要
的
是将每个处理
的
结果保存在
redis
中
,这样我就可以知道好
的
工作是如何工作
的
。我想在此表单
中
以
redis
格式保存数据。所以所有项都应该只插入key (date)
中
。 有可能吗? 一种解决方案是一次又一次地覆盖(date) key
的
数据,首先从
red
浏览 29
提问于2021-04-21
得票数 0
回答已采纳
3
回答
Redis
连接失败
spring
、
maven
、
spring-boot
、
redis
我想
使用
Redis
来操作sessions.But --我在运行
spring
app.So时失败了--我猜这个错误来自于maven依赖关系,尤其是版本冲突。>org.springframework.
boot
</groupId> <artifactId>
spring
-
boot
-starter-security</artifactId>repository/org/springframework&
浏览 2
提问于2018-10-07
得票数 3
回答已采纳
3
回答
测试时关闭
spring
boot
中
的
Redis
AutoConfig
java
、
spring
、
spring-boot
、
redis
、
spring-data-redis
当我
使用
spring
boot
进行测试时,我正在尝试禁用
Redis
。我已经禁用了我
的
配置,但是自动配置创建了一个默认连接,并且失败了,因为它不能连接到不存在
的
服务。对于测试,我满足于只
使用
基本
的
内存缓存或无操作缓存。这也不起作用。以下是我尝试过
的
方法:
spring
.autoconfigure.exclude=org.springfr
浏览 26
提问于2017-08-31
得票数 6
1
回答
在
Spring
Boot
应用程序
中
清除远程
Redis
缓存
spring
、
spring-boot
、
redis
我
使用
的
是
Spring
Boot
2.3,我
使用
的
是
使用
app.properties
的
默认缓存机制。我定义了所有的值:
spring
.cache.type =
redis
spring
.
redis
.port = port
spring
.
redis
.timeout然
浏览 22
提问于2020-10-07
得票数 0
2
回答
spring
-
boot
-starter data-
redis
不起作用
spring-boot
我
使用
spring
1.4.1,所以我
的
spring
-
boot
-starter-data-
redis
在我
的
<groupId>org.springframework.
boot
</groupId> <artifactId>
spring
-
boot
-starter-dat
浏览 5
提问于2016-10-27
得票数 4
1
回答
如何
使用
xml配置为非
spring
boot
java应用程序设置
redis
缓存前缀
键
java
、
spring-data-redis
、
redis-cache
、
wildfly-18
我想为
使用
xml配置
的
应用程序设置一个自定义缓存
键
前缀,我
的
目标是,如果缓存
键
是RedisCacheManager -detail,那么缓存
键
应该是test ::student-detail或prod下面是我
的
cacheManager配置
的
摘录。="redisTemplate" c:usePrefix="true"> <
浏览 131
提问于2021-02-21
得票数 0
1
回答
Spring
Boot
2.5.4应用程序
中
的
ClassNotFoundException while JedisClient初始化
java
、
spring-boot
、
redis
、
spring-data-redis
、
jedis
我有一个
Spring
Boot
2.5.4应用程序,我想在其中添加
Redis
并通过
Spring
Data
Redis
访问它。我当前
的
配置如下所示: pom.xml <?>2.5.0</
spring
-
boot
-starter-
redis
.version> <
redis
.version>3.1.0</
redis
.version>
浏览 360
提问于2021-09-08
得票数 0
5
回答
如何
使用
redis
使用
spring
-security-oauth2持久化令牌
java
、
spring-mvc
、
spring-security
、
oauth
、
redis
这是我第一次
使用
OAuth2方法开发应用程序。我是基于某些教程开始
的
,现在我将从这个教程()开始。我想
使用
Redis
(我也是第一次
使用
),但我有点困惑如何在某些无xml
的
java配置应用程序
中
设置它。 我在xml中发现了一些类似的问题,但我仍然不知道第一次尝试
的
方向()。有趣
的
是,在这里,问题所有者谈到了"
Spring
-Security,即2.8.0提供RedisTokenStore“,但我发现"
浏览 11
提问于2017-02-25
得票数 5
1
回答
弹簧引导没有连接到
redis
码头集装箱
spring-boot
、
docker
、
redis
我试图将
Spring
应用程序连接到我
的
停靠程序
中
的
redis
实例上,我已经配置了主机本地主机和端口16379,但是发生了一些奇怪
的
事情,缓存可以工作,但是当我看到
redis
键
是空
的
时,所以认为
Spring
使用
的
是嵌入式
redis
实例。我
的
pom.xml <groupId>o
浏览 3
提问于2022-10-04
得票数 0
回答已采纳
1
回答
Spring
缓存
的
AbstractCacheInvoker doPut()方法错误地调用了RedisCache put()方法
java
、
caching
、
redis
我有一个用
spring
boot
编写
的
web应用程序,它
使用
springframework.cache,在我开始
使用
spring
-data-
redis
之前,一切都运行得很好。一旦我在pom.xml
中
添加了
spring
-data-
redis
,我
的
spring
缓存就开始
使用
RedisCache实现。我想在不同
的
东西上
使用
re
浏览 37
提问于2021-11-02
得票数 0
回答已采纳
2
回答
在
spring
boot
2.3.x中
使用
Jedis 3.6.0时不支持流
java
、
redis
这是我在Gradle
中
定义
的
依赖项,此代码强制
使用
Jedis
的
3.6.0版本: resolutionStrategy { exclude group: "io.lettuce", module: "lettuce-core"
浏览 420
提问于2021-05-11
得票数 0
回答已采纳
2
回答
为什么我要用
Spring
获得“需要
的
NOAUTH身份验证”?
java
、
spring
、
spring-boot
、
redis
我有一个简单
的
redis
服务器运行一个密码。我想和它谈谈我
的
春季引导应用程序。我看上去是,并且看到有一个
spring
.
redis
.password,所以我
的
应用程序-local.yml(与-Dspring.profiles.active=local一起运行)看起来像.
redis
: i
浏览 7
提问于2020-11-10
得票数 3
回答已采纳
5
回答
Spring
@Cacheable默认TTL
spring
、
spring-boot
、
caching
、
spring-cache
我通常在我
的
spring
引导应用程序中
使用
带有缓存配置
的
@Cacheable,并为每个缓存设置特定
的
TTL (生存时间)。最近,我继承了一个
使用
@Cacheable
的
spring
引导应用程序,它没有显式地声明缓存管理器和ttl。我会把它改得很清楚。 但是,当没有明确
的
内容时,我无法找到缺省值是什么。
浏览 6
提问于2017-05-26
得票数 17
回答已采纳
4
回答
使用
redis
的
春季引导缓存,
键
有\xac\x00\x00\x05t\x00\x06
java
、
spring
、
caching
、
redis
我想
使用
Spring
cache @Cacheable来管理缓存。真正
的
缓存是红色
的
。key=key&value=value
spring
.
redis
.host=localhost
spring
.
redis
.port=6379group
浏览 4
提问于2016-09-05
得票数 10
回答已采纳
1
回答
Springsession和
redis
混淆了会话
java
、
session
、
redis
、
spring-session
我们
使用
redis
作为会话存储来配置springsessions。对于更大
的
负载,它以用户碰巧得到随机会话数据
的
结果结束。 不幸
的
是,我们不能再次重现它,并且它不能在测试环境
中
重现。
浏览 0
提问于2017-10-03
得票数 4
1
回答
在
使用
Spring
时可以设置
Redis
键
过期时间吗?
spring-boot
、
spring-integration
、
spring-integration-dsl
亲爱
的
,我想在中
使用
org.springframework.integration.
redis
.store.RedisMessageStore类时自动过期
Redis
键
.我看到了一些与“到期回调”相关
的
方法RedisMessageStore store = new RedisMessageStore(redisConnectionFactory, "TEST_");}
Spring
: 2.6.3,
spring
浏览 3
提问于2022-01-23
得票数 2
回答已采纳
1
回答
如何在
redis
中
存储JSF会话?
spring
、
tomcat
、
jsf
、
redis
我有一个JSF - Primefaces应用程序,我想用tomcat8在
redis
中
存储http会话。我该怎么做呢?Tomcat8没有维护。让http会话
的
一个存储(
redis
或其他)将tomcat放入集群
的
最佳解决方案是什么?诚挚
的
问候
浏览 3
提问于2015-09-20
得票数 0
1
回答
我无法从
Spring
连接到商店
spring-boot
、
google-cloud-platform
、
redis
、
spring-data-redis
、
google-cloud-memorystore
我正在开发一个后端带有
spring
引导
的
模块,在那里我需要通过GCP内存存储
使用
Redis
。我一直在论坛,甚至是关于内存存储
的
“官方文档”
中
搜索,但是我不知道如何用我
的
spring
引导应用程序连接到内存存储。所以我试着在我
的
本地弹簧引导
中
这样做,但是它没有起作用,因为抛出一个错误,上面说: 无法连接到
Redis
;
嵌套
的
异常是io.lettuce.core.Redi
浏览 14
提问于2022-01-31
得票数 0
1
回答
未能应用插件“org.gradle.application”。Gradle
gradle
、
intellij-idea
、
gradle-plugin
我最近解决了这个问题,它是由lombok版本引起
的
,将其降低并正常工作。org.springframework.
boot
:
spring
-
boot
-starter-cache') compile('org.springframework.
boot
:<
浏览 7
提问于2022-04-20
得票数 0
回答已采纳
1
回答
如何在Java
中
实现RedisCache.class来存储键值对
java
、
spring
、
spring-boot
、
redis
、
redis-cache
companyUserService; }有人知道如何
使用
RedisCache.Class并实例化它吗?需要一个无法找到
的
'io.lettuce.core.support.caching.RedisCache‘类型
的
bean。
浏览 16
提问于2022-10-11
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
使用idea快速的搭建spring boot项目
Spring Boot 2.x 中的 Actuator
使用Gradle构建基于Kotlin的Spring Boot项目
《06.Spring Boot的数据访问:PagingAndSortingRepository使用》
Java开发之神兵利器——Spring Boot中MongoDB的快速集成和使用
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券