Spring series, part 3: @Lazy
Lazy initialization allows for a greater flexibility and performance by delaying bean instantiation to the very last moment. A fairly straightforward feature represented by a simple annotation @Lazy. Yet, as usual, there are a few pitfalls to watch out for. Let’s start with some trivia. Adding @Lazy on the class level is all it takes…