Skip to content

Commit b5595c3

Browse files
committed
Fix faulty BeanPostProcessorChecker logs with @EnableCaching
Issue: SPR-16896
1 parent 76678e9 commit b5595c3

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

spring-aspects/src/main/java/org/springframework/cache/aspectj/AspectJCachingConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -34,6 +34,7 @@
3434
* @see org.springframework.cache.annotation.CachingConfigurationSelector
3535
*/
3636
@Configuration
37+
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
3738
public class AspectJCachingConfiguration extends AbstractCachingConfiguration {
3839

3940
@Bean(name = CacheManagementConfigUtils.CACHE_ASPECT_BEAN_NAME)

spring-aspects/src/main/java/org/springframework/cache/aspectj/AspectJJCacheConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -34,6 +34,7 @@
3434
* @see org.springframework.cache.annotation.CachingConfigurationSelector
3535
*/
3636
@Configuration
37+
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
3738
public class AspectJJCacheConfiguration extends AbstractJCacheConfiguration {
3839

3940
@Bean(name = CacheManagementConfigUtils.JCACHE_ASPECT_BEAN_NAME)

spring-context-support/src/main/java/org/springframework/cache/jcache/config/ProxyJCacheConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,6 +36,7 @@
3636
* @see org.springframework.cache.annotation.CachingConfigurationSelector
3737
*/
3838
@Configuration
39+
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
3940
public class ProxyJCacheConfiguration extends AbstractJCacheConfiguration {
4041

4142
@Bean(name = CacheManagementConfigUtils.JCACHE_ADVISOR_BEAN_NAME)

spring-context/src/main/java/org/springframework/cache/annotation/ProxyCachingConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -35,6 +35,7 @@
3535
* @see CachingConfigurationSelector
3636
*/
3737
@Configuration
38+
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
3839
public class ProxyCachingConfiguration extends AbstractCachingConfiguration {
3940

4041
@Bean(name = CacheManagementConfigUtils.CACHE_ADVISOR_BEAN_NAME)

0 commit comments

Comments
 (0)