From e86d0f38e449d774a0f219c7f30905eaab7488db Mon Sep 17 00:00:00 2001 From: Kyle Anderson Date: Fri, 1 Sep 2017 09:07:48 -0700 Subject: [PATCH 1/2] Document default value change for proxy-target-class This commit documents the change to the default value for spring.aop.proxy-target-class by clarifying when the default is true vs false. See gh-10134 --- .../src/main/asciidoc/appendix-application-properties.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc b/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc index 455cc33831..a0b55f477a 100644 --- a/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc +++ b/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc @@ -50,7 +50,7 @@ content into your application; rather pick only the properties that you need. # AOP spring.aop.auto=true # Add @EnableAspectJAutoProxy. - spring.aop.proxy-target-class=false # Whether subclass-based (CGLIB) proxies are to be created (true) as opposed to standard Java interface-based proxies (false). + spring.aop.proxy-target-class= # Whether subclass-based (CGLIB) proxies are to be created (true) as opposed to standard Java interface-based proxies (false). Defaults to "true" when using Spring Transaction Management, otherwise "false". # IDENTITY ({sc-spring-boot}/context/ContextIdApplicationContextInitializer.{sc-ext}[ContextIdApplicationContextInitializer]) spring.application.index= # Application index. From 61ae92992b54bf66c32818cd7d553fe4029de82b Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Sat, 16 Sep 2017 06:46:36 +0200 Subject: [PATCH 2/2] Polish "Document default value change for proxy-target-class" Closes gh-10134 --- .../META-INF/additional-spring-configuration-metadata.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json index 3f6a1743ae..e4fb88fc49 100644 --- a/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json +++ b/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json @@ -114,8 +114,7 @@ { "name": "spring.aop.proxy-target-class", "type": "java.lang.Boolean", - "description": "Whether subclass-based (CGLIB) proxies are to be created (true) as opposed to standard Java interface-based proxies (false).", - "defaultValue": false + "description": "Whether subclass-based (CGLIB) proxies are to be created (true) as opposed to standard Java interface-based proxies (false). Defaults to \"true\" when using Spring Transaction Management, otherwise \"false\"." }, { "name": "spring.application.admin.enabled",