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 Read more…

Spring series: @Primary

With a recent upgrade of my favorite framework I was thinking a short recap wouldn’t harm. This very first post, from a series of articles on Spring’s features I find interesting, deals with intricacies of injecting the right bean out of a range of suitable candidates. If you are keen to Read more…