The Ehcache second-level cache provider for Hibernate is deprecated

项目使用Ehcache2与Hibernate集成时出现警告,提示Ehcache2已过时,建议改用Ehcache3和hibernate-jcache进行集成。此更新旨在提高缓存效率和稳定性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

WARN 8268 — [restartedMain] org.hibernate.orm.deprecation : HHH020100: The Ehcache second-level cache provider for Hibernate is deprecated. See https://hibernate.atlassian.net/browse/HHH-12441 for details.
项目集成了Ehcache ,报出了上述警告。
hibernate-ehcache包建立在Ehcache 2的基础上,现在推荐hibernate-jcache,是与Ehcache 3集成的包。
在这里插入图片描述
Steve Ebersole added a comment - 11/Apr/2018 08:05 AM
Deprecated in favor of either:

  • hibernate-jcache in combination with Ehcache 3 (which is a JCache provider).
  • the RegionFactory implementation from Ehcache, if/when they provide that.

hibernate-ehcache is based on Ehcache 2, which is no longer supported - Ehcache 3 is the one supported by the Ehcache team.

hibernate-ehcache包建立在Ehcache 2的基础上,现在推荐hibernate-jcache,是与Ehcache 3集成的包。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值