title: Spring Inheritance - Annotation
body: <p>I came across this <a href="http://www.tutorialspoint.com/spring/spring_bean_definition_inheritance.htm" rel="noreferrer">link</a> which explains how a bean can be inherited. Assuming that HelloWorld class in this example is exposed as a bean using @Component annotation , how can create another bean which inherits this bean? Can I use extends to inherit HelloWorld bean and add @Component to the new class in order to extend the existing bean expose it as a new bean with additional features?</p>