how to specify a bean as non lazy with annotations

Michael Wiles picture Michael Wiles · Jun 22, 2009 · Viewed 28.3k times · Source

Does anyone know how to specify a bean as non lazy when using annotations to configure the bean?

Answer

Bozho picture Bozho · Jul 11, 2010

In spring 3.0 there is an annotation: @Lazy(false). But note that beans are eager by default.