如何解决"Spring Cloud LoadBalancer当前正在使用默认缓存,可以切换到使用咖啡因缓存‘的警告?

如何解决spring boot中的

Spring Cloud LoadBalancer is currently working with the default cache. You can switch to using Caffeine cache, by adding it to the classpath.

警告?

在您的pom.xml中添加下面的库

<!-- https://mvnrepository.com/artifact/com.github.ben-manes.caffeine/caffeine -->
<dependency>
    <groupId>com.github.ben-manes.caffeine</groupId>
    <artifactId>caffeine</artifactId>
    <version>2.8.8</version>
</dependency>

 

posted @ 2022-08-05 14:21  浅笑19  阅读(1238)  评论(0编辑  收藏  举报