create simple spring dependency injection application with annotation

preview_player
Показать описание
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
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
Рекомендации по теме
visit shbcf.ru