I am using Spring MVC for my web application. My beans are written in \"spring-servlet.xml\" file
spring-servlet.xml
Now I have a class MyClass and i want to
MyClass
Simply inject it..
@Autowired private ApplicationContext appContext;
or implement this interface: ApplicationContextAware