Move AOP auto-configuration into spring-boot-autoconfigure

This commit is contained in:
Andy Wilkinson
2025-04-29 10:19:49 +01:00
committed by Phillip Webb
parent a527e028a7
commit 5b12959189
9 changed files with 15 additions and 13 deletions

View File

@@ -1,18 +1,6 @@
{
"groups": [],
"properties": [
{
"name": "spring.aop.auto",
"type": "java.lang.Boolean",
"description": "Add @EnableAspectJAutoProxy.",
"defaultValue": true
},
{
"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": true
},
{
"name": "spring.dao.exceptiontranslation.enabled",
"type": "java.lang.Boolean",

View File

@@ -1,4 +1,3 @@
org.springframework.boot.autoconfigure.aop.AopAutoConfiguration
org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration
org.springframework.boot.autoconfigure.http.client.HttpClientAutoConfiguration
org.springframework.boot.autoconfigure.http.client.service.HttpServiceClientAutoConfiguration

View File

@@ -13,6 +13,7 @@ dependencies {
api(project(":spring-boot-project:spring-boot"))
optional("com.github.ben-manes.caffeine:caffeine")
optional("org.aspectj:aspectjweaver")
optional("jakarta.persistence:jakarta.persistence-api")
optional("jakarta.servlet:jakarta.servlet-api")
optional("javax.money:money-api")
@@ -35,6 +36,7 @@ dependencies {
testImplementation("com.fasterxml.jackson.core:jackson-databind")
testImplementation("io.projectreactor:reactor-core")
testImplementation("org.springframework:spring-context-support")
testImplementation("org.springframework.security:spring-security-config")
testRuntimeOnly("com.github.ben-manes.caffeine:caffeine")
testRuntimeOnly("org.springframework:spring-webflux")

View File

@@ -287,6 +287,18 @@
"level": "error"
}
},
{
"name": "spring.aop.auto",
"type": "java.lang.Boolean",
"description": "Add @EnableAspectJAutoProxy.",
"defaultValue": true
},
{
"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": true
},
{
"name": "spring.application.admin.enabled",
"type": "java.lang.Boolean",

View File

@@ -1,4 +1,5 @@
org.springframework.boot.autoconfigure.admin.SpringApplicationAdminJmxAutoConfiguration
org.springframework.boot.autoconfigure.aop.AopAutoConfiguration
org.springframework.boot.autoconfigure.availability.ApplicationAvailabilityAutoConfiguration
org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration
org.springframework.boot.autoconfigure.context.LifecycleAutoConfiguration