Thi*_*mal 5 java spring-boot caffeine caffeine-cache
如何解决Spring Cloud LoadBalancer is currently working with the default cache. You can switch to using Caffeine cache, by adding it to the classpath.
spring boot中的警告?
将以下库添加到您的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>
Run Code Online (Sandbox Code Playgroud)
或者在你的build.gradle
// https://mvnrepository.com/artifact/com.github.ben-manes.caffeine/caffeine
compile group: 'com.github.ben-manes.caffeine', name: 'caffeine', version: '2.8.8'
Run Code Online (Sandbox Code Playgroud)
您可以替换合适/最新版本的caffeine
.
归档时间: |
|
查看次数: |
1595 次 |
最近记录: |