Skip to content

Remove spring-boot-starter-aop dependency from spring-boot-starter-data-jpa and spring-boot-starter-integration #42934

Closed
@philwebb

Description

@philwebb

Some performance work shows that a simple Spring Data JPA application can have improved startup time if the following exclusions are applied to spring-boot-starter-data-jpa.

<exclusions>
	<exclusion>
		<groupId>org.springframework</groupId>
		<artifactId>spring-aspects</artifactId>
	</exclusion>
	<exclusion>
		<groupId>org.aspectj</groupId>
		<artifactId>aspectjweaver</artifactId>
	</exclusion>
</exclusions>

My non scientific testing shows before:

2024-10-29T21:09:51.630-07:00  INFO 18539 --- [demo] [           main] com.example.demo.DemoApplication         : Started DemoApplication in 2.056 seconds (process running for 2.228)

after:

2024-10-29T21:10:57.554-07:00  INFO 18544 --- [demo] [           main] com.example.demo.DemoApplication         : Started DemoApplication in 1.774 seconds (process running for 1.943)

Perhaps we should change existing starters that pull in spring-boot-starter-aop to instead just pull in spring-aop.

Metadata

Metadata

Assignees

Labels

status: noteworthyA noteworthy issue to call out in the release notestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions