Polish documentation regarding target class proxying

Closes gh-12196
pull/12202/head
Andy Wilkinson 7 years ago
parent 9b61df6a2b
commit 782ab2803e

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -32,8 +32,8 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
* configuration.
* <p>
* The configuration will not be activated if {@literal spring.aop.auto=false}. The
* {@literal proxyTargetClass} attribute will be {@literal false}, by default, but can be
* overridden by specifying {@literal spring.aop.proxyTargetClass=true}.
* {@literal proxyTargetClass} attribute will be {@literal true}, by default, but can be
* overridden by specifying {@literal spring.aop.proxy-target-class=false}.
*
* @author Dave Syer
* @author Josh Long

@ -75,7 +75,7 @@ public class AopAutoConfigurationTests {
}
@Test
public void aopWithCustomConfiguration() {
public void customConfigurationWithProxyTargetClassDefaultDoesNotDisableProxying() {
this.contextRunner.withUserConfiguration(CustomTestConfiguration.class)
.run(proxyTargetClassEnabled());
}
@ -101,7 +101,7 @@ public class AopAutoConfigurationTests {
};
}
@EnableAspectJAutoProxy(proxyTargetClass = true)
@EnableAspectJAutoProxy
@Configuration
@Import(TestConfiguration.class)
protected static class CustomTestConfiguration {

@ -4575,9 +4575,6 @@ TIP: It is also possible to transparently
{spring-reference}integration.html#cache-annotations-evict[evict] data from the cache.
NOTE: If you use the cache infrastructure with beans that are not interface-based, make
sure to enable the `proxyTargetClass` attribute of `@EnableCaching`.
=== Supported Cache Providers
The cache abstraction does not provide an actual store and relies on abstraction

Loading…
Cancel
Save