Spring / Spring Beans
Explain @Lookup annotation usage in this context.
Marks a method for method injection Spring overrides it dynamically to return a new instance.
@Component public class SingletonBean { @Lookup public PrototypeBean getPrototypeBean() { return null; // overridden by Spring } }
More Related questions...