updated code to demonstrate spring IoC and DI using annotations
updated code to deomonstrate Resource annotation for DI