Skip to content

Simple Maven project with Spring Boot to demonstrate usages of dependency injection of Spring components.

License

Notifications You must be signed in to change notification settings

Interes-Group/spring-course-dependency-injection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Course - Dependency injection

Java CI with Maven License MIT Java 1.8

Cieľom je oboznámiť sa s možnosťou DI viacerých implementácií jednej beany.

Obsah projektu

Projekt obsahuje rozhranie TranslationService, ktoré deklaruje metódu translate s jedným vstupom typu String a výstupom typu String. Následne, tri rôzne beany implementujúce rozhranie TranslationService pre tri rôzne jazyky (napr. SlovakTranslationService, EnglishTranslationService, GermanTranslationService). V main triede je závislosť na zoznam TraslationService bean. Pri štarte aplikácie sa iteruje zoznamom bean a vypíše preklad slova “niečo” pre každý jazyk.

About

Simple Maven project with Spring Boot to demonstrate usages of dependency injection of Spring components.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages