Menu

#31 spring bean/context/dependency injector

1.0
accepted
None
2021-11-30
2021-11-30
No

https://www.javatpoint.com/spring-tutorial-constructor-injection-with-dependent-object
Practice above spring application context creating beans.
Create a maven project called "employee-demo" with groupId: com.cybersolveit.spring.employee-demo
and artifact ID: employee-demo as a jar project.
Inject Spring core, Spring beans, Spring Context and spring context-support as well to the dependencies.
Use old java way of doing same thing first in EmployeeDemo class.
Then use XMLBeanFactory to achieve same thing.
Then use ApplicationContext to achieve same thing.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB