【发布时间】:2025-12-09 23:35:01
【问题描述】:
我们想在 Spring Boot 应用中启用缓存。 我已使用以下链接关注并启用它:
https://howtodoinjava.com/spring-boot2/spring-boot-cache-example/
当我将 Spring Boot 应用程序作为多个实例运行时(在 8081、8082 等不同端口上), 只要轮到它,它就会为每个实例创建每个缓存。
如何在 Spring Boot 应用实例之间启用缓存?
【问题讨论】:
标签: spring-boot caching spring-data-jpa