Explain @autowired in spring hibernate | SoloLearn: Learn to code for FREE!

+2

Explain @autowired in spring hibernate

give some example

8/10/2017 12:04:54 PM

JRaj Fx

4 Answers

New Answer

+26

In Spring, you can use @Autowired annotation to auto wire bean on the setter method, constructor or a field. Moreover, it can autowired property in a particular bean. Include ‘AutowiredAnnotationBeanPostProcessor’

0

give some example

0

The Bean object in the Spring container is not created with the new operator. Spring will do it if necessary. Example: https://code.sololearn.com/clKg2ejgHbn9/?ref=app

0