Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
bd7c20eb
Commit
bd7c20eb
authored
Sep 21, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate Guava support
parent
474c2e46
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
+11
-2
GuavaCacheStatisticsProvider.java
...work/boot/actuate/cache/GuavaCacheStatisticsProvider.java
+2
-0
CacheProperties.java
...ngframework/boot/autoconfigure/cache/CacheProperties.java
+6
-0
CacheType.java
...g/springframework/boot/autoconfigure/cache/CacheType.java
+1
-0
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+2
-2
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cache/GuavaCacheStatisticsProvider.java
View file @
bd7c20eb
...
...
@@ -26,7 +26,9 @@ import org.springframework.cache.guava.GuavaCache;
*
* @author Stephane Nicoll
* @since 1.3.0
* @deprecated as of 1.5 following the removal of Guava support in Spring Framework 5
*/
@Deprecated
public
class
GuavaCacheStatisticsProvider
implements
CacheStatisticsProvider
<
GuavaCache
>
{
@Override
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheProperties.java
View file @
bd7c20eb
...
...
@@ -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
;
}
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheType.java
View file @
bd7c20eb
...
...
@@ -69,6 +69,7 @@ public enum CacheType {
/**
* Guava backed caching.
*/
@Deprecated
GUAVA
,
/**
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
bd7c20eb
...
...
@@ -3799,7 +3799,7 @@ providers (in this order):
* <<boot-features-caching-provider-couchbase,Couchbase>>
* <<boot-features-caching-provider-redis,Redis>>
* <<boot-features-caching-provider-caffeine,Caffeine>>
* <<boot-features-caching-provider-guava,Guava>>
* <<boot-features-caching-provider-guava,Guava>>
(deprecated)
* <<boot-features-caching-provider-simple,Simple>>
TIP: It is also possible to _force_ the cache provider to use via the `spring.cache.type`
...
...
@@ -4019,7 +4019,7 @@ auto-configuration.
[[boot-features-caching-provider-guava]]
==== Guava
==== Guava
(deprecated)
If Guava is present, a `GuavaCacheManager` is auto-configured. Caches can be created
on startup using the `spring.cache.cache-names` property and customized by one of the
following (in this order):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment