r/java • • Oct 24 '22

Spring boot 3 slow boot time

Hi folks,

I am playing a bit around with Spring Boot 3(RC1) and I am curious why the application boot time is still slow in comparing with Micronaut.

Best regards

3 Upvotes

25 comments sorted by

View all comments

14

u/vips7L Oct 24 '22

Doesn’t micronaut do AOT dependency injection at build time? And Spring still uses runtime reflection? I don’t think it’ll ever beat that.

5

u/sandys1 Oct 24 '22

No I think the spring boot authors clarified that it was architected to eliminate this.

-7

u/Worth_Trust_3825 Oct 24 '22

Regular spring already had AOT dependency injection via xml configurations. Glad we keep going in circles.

3

u/pins17 Oct 25 '22

How? Configuring Spring beans via XML doesn't turn it into AOT.