Closed
Description
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
.