Science, asked by divaa8320, 1 year ago

Spring:How do you turn on annotation wiring?

Answers

Answered by rockyak4745
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