How do you turn on annotation wiring?



How do you turn on annotation wiring?..

Answer / Guddi Meena

To enable Annotation Wiring (also known as Autowired Annotations) in Spring, you need to have the `context:annotation-config` element or `AnnotationConfigApplicationContext` class in your configuration. Additionally, make sure to use @Autowired annotation on setter methods or constructors.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

List in brief the new features spring 3.0 has to offer.

1 Answers  


What is difference between spring and spring boot? : Spring Boot

1 Answers  


Why do we need dependency injection in spring?

1 Answers  


Explain the concept of aspect oriented programming?

1 Answers  


What is aop logging?

1 Answers  


What is a spring based application?

1 Answers  


What is context param in spring?

1 Answers  


What is difference between model and modelmap?

1 Answers  


Is override annotation required?

1 Answers  


Does spring boot use spring mvc? : Spring Boot

1 Answers  


What are pojo classes in spring?

1 Answers  


What are the different types of ioc container?

1 Answers  


Categories