Search code examples
springannotationsspring-annotations

how to specify a bean as non lazy with annotations


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


Solution

  • Beans are not lazy by default. However as far as annotations are concerned it seems like currently annotations do not support it. http://forum.springsource.org/showthread.php?t=62931

    Spring's next version though seem to have something in store http://jira.springframework.org/browse/SJC-263