adspace


How do you turn on annotation wiring?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you inject java collection in spring?

518


What is difference between @controller and @restcontroller in spring?

556


What is lazy class?

490