Deprecate Guava support
This commit is contained in:
@@ -20,6 +20,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.DeprecatedConfigurationProperty;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
@@ -266,10 +267,15 @@ public class CacheProperties {
|
||||
*/
|
||||
private String spec;
|
||||
|
||||
@Deprecated
|
||||
@DeprecatedConfigurationProperty(
|
||||
reason = "Caffeine will supersede the Guava support in Spring Boot 2.0",
|
||||
replacement = "spring.cache.caffeine.spec")
|
||||
public String getSpec() {
|
||||
return this.spec;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setSpec(String spec) {
|
||||
this.spec = spec;
|
||||
}
|
||||
|
||||
@@ -69,6 +69,7 @@ public enum CacheType {
|
||||
/**
|
||||
* Guava backed caching.
|
||||
*/
|
||||
@Deprecated
|
||||
GUAVA,
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user