+ 2

Explain @autowired in spring hibernate

give some example

10th Aug 2017, 12:04 PM
JRaj Fx
JRaj Fx - avatar
4 Respuestas
+ 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’
10th Aug 2017, 12:09 PM
Adi Pratama
Adi Pratama - avatar
0
give some example
10th Aug 2017, 12:17 PM
JRaj Fx
JRaj Fx - avatar
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
10th Aug 2017, 2:44 PM
Grzegorz Kawalec
Grzegorz Kawalec - avatar
0
thq
10th Aug 2017, 2:49 PM
JRaj Fx
JRaj Fx - avatar