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
Step 1 :Inject following code in class
@Autowired private ApplicationContext _applicationContext;
Step 2 : Write Getter & Setter
Step 3: define autowire="byType" in xml file in which bean is defined