Spring:How do you turn on annotation wiring?
Answers
Answered by
0
To enable @Autowired, you have to register 'AutowiredAnnotationBeanPostProcessor', and you can do it in two ways :
Include <context:annotation-config /> Add Spring context and <context:annotation-config /> in bean configuration file. ...
Include AutowiredAnnotationBeanPostProcessor.
Similar questions