You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

升级bucket4j-spring-boot-starter至0.12.3后应用启动失败的问题求助

升级bucket4j-spring-boot-starter至0.12.3后应用启动失败的问题求助

大家好,最近我在给项目做依赖版本迭代,把bucket4j-spring-boot-starter从0.12.2版本升级到0.12.3之后,应用直接启动失败了,弹出的错误信息如下:

APPLICATION FAILED TO START


Description: No Bucket4j cache configuration found - cache-to-use: jcache
Action: Please provide a valid cache configuration. Check the documentation to see which caches are supported. Check the example projects. Use the debug=true property to determine which Bucket4j cache configuration has problems. Provide your own SyncCacheResolver or AsyncCacheResolver.

我查了官方文档,知道这是bucket4j-spring的内部变更引发的问题,于是按照提示添加了对应缓存的依赖包,也确认了配置项的正确性,但应用还是启动失败。

而且我升级前后的bucket4j核心配置完全没变化,具体配置内容如下:

bucket4j.enabled: true
bucket4j.filterConfigCachingEnabled: false
bucket4j.filterConfigCacheName: filterConfigCache

有没有朋友遇到过类似的问题?或者能给我一些具体的排查方向吗?

内容来源于stack exchange

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.07 09:18:02