腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Spring
Boot
缓存
仅
使用
NoOp
缓存
,
而
不是
已
配置
的
缓存
类型
spring-boot
、
caching
、
yaml
我正在将
缓存
添加到一个
spring
引导项目中。expireAfterWrite=60s type: caffeine @EnableCaching在主应用程序上,我已经将@Cacheable("cacheName")添加到方法中,并且它不会被同一类中
的
另一个方法调用在测试中,我发现
缓存
的
类型
是
NoOp
,
而
不是
Caffeine。我已经确保在所有实例中都
使用
了正确
的
导入(spri
浏览 18
提问于2020-10-08
得票数 0
2
回答
Spring
Boot
2.0无法
使用
咖啡因作为
缓存
提供程序
spring
、
spring-boot
我
使用
web和
缓存
依赖关系创建了
Spring
Boot
2.0 Starter项目: <dependency><dependency> <groupId>com.github.ben-manes.caffeine</grou
浏览 2
提问于2018-03-19
得票数 3
1
回答
WildFly 10,JCache -方法
缓存
caching
、
spring-boot
、
infinispan
、
wildfly-10
、
jcache
我有
使用
Spring
的
简单应用程序。我希望
使用
JSR107 - JCache进行允许方法
缓存
。<dependency> <artifactId>
spring
-
boot
-starter-cache现在我想在WildFly 10应用服务器上试用它 排除
浏览 3
提问于2016-09-07
得票数 0
1
回答
带redis
的
弹簧靴
spring
、
spring-boot
、
redis
我
使用
了
spring
boot
和redis来
缓存
。我可以
使用
@Cacheable(key = "{#input,#page,#size}",value = "on_test")
缓存
从数据库(Oracle)获取
的
数据。Redis
配置
: @Configuration JedisConnectionFactory jedisConnec
浏览 12
提问于2020-02-02
得票数 0
1
回答
可以将Cache2k用作hibernate二级
缓存
和
spring
缓存
管理器吗?
caching
、
spring-cache
、
cache2k
我正在
使用
基于
spring
的
应用程序(
而
不是
spring
boot
),并试图引入cache2k作为
spring
缓存
管理器。cache2k.xml
配置
文件(
仅
与示例相关
的
部分) <cache2k xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xml
浏览 54
提问于2018-12-26
得票数 2
1
回答
如何
使用
hazelcast在
spring
boot
中
配置
多个
缓存
?
spring-boot
、
caching
、
hazelcast
我是新来Hazelcast
的
。我正在尝试在我
的
spring
boot
应用程序中实现
缓存
。我已经
使用
两个映射
配置
(CacheObject和CacheList)为hazlecast创建了一个
配置
类。我在objectMethod和listMethod上
使用
了@cacheable注解。问题是只有对象
缓存
在工作,列表
缓存
没有在工作。当我在调试模式下运行程序时,对象
缓存
是返回值,
而</
浏览 10
提问于2019-05-27
得票数 0
回答已采纳
1
回答
如何
使用
Caffeine
缓存
管理器测试内存
缓存
?(例如,在
缓存
后获取
缓存
中
的
条目数,
缓存
驱逐)
java
、
spring-boot
、
caching
、
java-8
、
caffeine
在
缓存
数据或逐出数据后,我希望获得我
的
自定义
缓存
中条目的详细信息。 我尝试
使用
致动器依赖来获取“致动器/度量”路径来获取详细信息,但是我得到了空
的
tomcat服务器
缓存
。没有我
的
自定义
缓存
myCache (我传递给@Cacheable注释值参数
的
名称)
的
迹象。
浏览 45
提问于2019-08-28
得票数 0
1
回答
我可以
使用
ConcurrentMapCacheFactoryBean定制
Spring
Boot
simple ConcurrentMapCache
的
存储吗?
spring
、
spring-boot
、
caching
、
guava
、
spring-cache
我正在
使用
带有一些@Cacheable和@EnableCaching注释
的
自动
配置
的
https://docs.
spring
.io/
spring
-
boot
/docs/current/reference/html/
spring
-
boot
-features.html#
boot
-features-caching-provider-simple。我
浏览 89
提问于2020-11-26
得票数 0
回答已采纳
1
回答
是否可以在
Spring
中
配置
基于ConcurrentMap
的
缓存
?
java
、
spring
、
spring-boot
、
caching
Spring
的
缓存
的
默认实现是一个ConcurrentMap。
使用
默认
缓存
类型
,是否可以
配置
最大大小以避免内存中断?对于
Spring
中基于ConcurrentMap
的
缓存
,是否可能有其他
类型
的
配置
?
浏览 24
提问于2019-01-24
得票数 0
1
回答
Spring
Boot
自动刷新
缓存
caching
、
spring-boot
spring
boot
支持
缓存
自动刷新吗?或者按需刷新/重新启动高速
缓存
。谢谢!
浏览 11
提问于2017-03-09
得票数 1
3
回答
有没有可能在
缓存
服务器出现故障时让应用程序忽略
缓存
?
java
、
spring-boot
、
spring-data-redis
、
spring-cache
我有一个
spring
boot
应用程序,它具有以下属性:
spring
.redis.host: <hostname>
spring
.redis.port在这种情况下,我
的
缓存
不是
我
的
应用程序
的
核心,但它只用于性能,我希望
spring
简单地绕过它,转到数据库检索它
的
数据。我看到这可以通过定义一个自定义
的
e
浏览 1
提问于2019-07-25
得票数 4
1
回答
哈泽尔卡斯特
的
CacheManager没有被春启动注入
java
、
spring
、
spring-boot
、
hazelcast
我正在尝试
使用
Spring
2.1.18安装Hazelcast 4.2.0,这些是我
的
依赖项: <groupId>org.springframework.
boot
</groupId> <version>4.2</version>问题
浏览 3
提问于2022-02-08
得票数 0
3
回答
在
Spring
cache中
使用
多个
缓存
实现
java
、
spring
、
caching
、
spring-boot
、
spring-cache
我正在开发一个需要同时
使用
分布式(例如Hazelcast)和本地(例如Guava)
缓存
的
Spring
Boot
应用程序。有没有办法将
Spring
Cache
配置
为在
使用
@Cacheable时同时
使用
,并根据
缓存
名称决定需要哪种实现?我尝试为HZ和Guava创建一个
配置
,在其中定义
缓存
名称,但
Spring
抱怨说它找不到应该由HZ处理
的
缓存<
浏览 0
提问于2017-02-02
得票数 6
回答已采纳
1
回答
Spring
Boot
并行启动多个
缓存
管理器
spring
、
spring-mvc
、
spring-boot
、
redis
、
caffeine
我有一个
Spring
Boot
Web应用程序,并通过一个redis商店
使用
spring
session。web请求有时需要
缓存
它们
的
响应(以避免不必要
的
数据库访问),我计划
使用
咖啡因。然而,似乎Redis取代了(只要我包含gradle依赖项)作为
缓存
实现,因为我为咖啡因设置
的
所有TTL都被忽略了。 在
Spring
Boot
应用程序中
使用
多个
缓存
浏览 2
提问于2017-06-15
得票数 1
1
回答
JarFileFactory
缓存
jar文件
java
、
spring
、
spring-boot
、
urlclassloader
我有
spring
boot
应用程序,它由2个模块组成:前端和
spring
boot
应用程序项目(前端是
spring
boot
应用程序
的
gradle依赖项)。它们被添加到类路径中,
spring
可以为这些静态文件
的
请求提供服务。在用build替换frontend.jar和自动重启
spring
应用程序资源后,无法加载,出现压缩错误,在我之前
的
question中对此进行了描述。下一个请求(如果我没有在调试器
浏览 22
提问于2019-09-10
得票数 0
1
回答
在非
spring
-
boot
应用程序中公开来自
spring
-
boot
-actuator
的
缓存
端点
spring-boot
、
spring-mvc
、
spring-boot-actuator
我正在
使用
非
spring
-
boot
应用程序,但我需要公开端点,它将返回应用程序中
配置
的
缓存
。我看到了
spring
post,但它是针对this -
boot
-actuator版本1.X
的
,我
使用
的
是
spring
-
boot
-actuator版本2.1.3.RELEASE,因为
缓存
端点在此版本中可用
浏览 26
提问于2020-01-31
得票数 0
1
回答
如何
使用
Spring
数据JPA启用基本
缓存
spring
、
caching
、
spring-boot
、
spring-data
、
spring-data-jpa
我正在尝试
使用
启用基本
缓存
。但是我不明白DAO方法为什么仍然在查询数据库
而
不是
使用
缓存
。--
Spring
Boot
start --> <groupId>org.springframework.
boot
</groupId> <groupId>o
浏览 2
提问于2017-04-01
得票数 2
回答已采纳
1
回答
利用Redis支持
的
Spring
Boot
Cache
缓存
不可序列化对象
java
、
spring
、
spring-boot
、
redis
、
spring-cache
我想
缓存
来自第三方API
的
响应,该API提供了自己
的
客户端和数据类。但问题是,这两个数据类都没有实现Serialazable接口,所以
使用
Spring
Boot
Cache Redis进行
缓存
会在我尝试时抛出NotSerializableException。有没有可能将
Spring
Boot
Redis Cache
配置
为允许
缓存
未实现Serializable
的
对象
浏览 19
提问于2021-02-06
得票数 1
8
回答
过期时间@cacheable
spring
boot
java
、
caching
、
spring-cache
我已经实现了一个
缓存
,现在我想添加一个过期时间。 如何
使用
@Cacheable在
spring
boot
中设置过期时间?
浏览 1
提问于2015-01-16
得票数 43
1
回答
@cacheable不
使用
弹簧引导。
使用
ehcache3
java
、
spring
、
spring-boot
、
ehcache-3
*Ehcache3不
使用
spring
引导--我尝试了以下方法。
Spring
从不
缓存
component.It中提到
的
值,无论
缓存
是否启用,都会调用no。在日志中,它显示
缓存
被添加到
缓存
管理器中,但这里
的
情况并非如此。中,我有以下
配置
- SpringApplication.run(TestApplication.
浏览 1
提问于2019-06-26
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
spring boot+spring cache 实现两级缓存
Spring Boot与Redis 实现 Cache 以及 Session 共享
Spring全家桶—SpringBoot2集成Redis缓存
Spring Boot+Mybatis+Redis二级缓存开发指南
Java Web现代化开发:Spring Boot+Mybatis+Redis二级缓存
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券