@Lazy at injection point

Jackie
Apr 8, 2021

Turns out when spring inject the bean with `@Lazy annotation, it's actually not delaying` the bean initialization, which is separately controlled at the @Bean or @Configuration level.

the injection point is instead creating a proxy object, with all attributes nulled, and for the methods, it will direct to the actual bean.

Published

Originally published at https://lwpro2.dev on April 8, 2021.

--

--