Click this link to subscribe our Channel : https://goo.gl/HhwC5i
This Video contains :
create simple spring dependency injection application with annotation
Example Service - Simple Message Service
1. create maven project
2. add the spring framework dependency
3. execute the maven command to download the needed jar file from repo
4. goto local .m2 repo to see all jars downloaded[looks good]
5. create service interface
6. create implementation class
7. here is the critical part , write a configuration class to scan all the components [equvalent to applicationContext.xml]
8. @Configuration - let container know its a configuration file
9. @ComponentScan - let container know its scanning package to look for components
10. @Bean - what is the bean id has to call
11. Create component file to wiring the services
12. Create client file to run the application
13. cool it worked
Click this link to subscribe our Channel : https://goo.gl/HhwC5i #TheProgrammingGuy#GuideMe360#EJB#EnterpriseJavaBean