




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Useful for Java students who has Spring framework knowledge before attending any interviews.
Typology: Study notes
1 / 335
This page cannot be seen from the preview
Don't miss anything!
@Component public class TodoBusinessService {
@Autowired TodoDataService dataService;// = new TodoDataService()
public TodoBusinessService(TodoDataService dataService) { this.dataService = dataService; }
public interface TodoDataService { List
@Component public class ComplexAlgorithmImpl {
@Autowired private SortAlgorithm sortAlgorithm;
public interface SortAlgorithm { public int[] sort(int[] numbers); }
public class QuickSortAlgorithm implements SortAlgorithm {
public class BubbleSortAlgorithm implements SortAlgorithm {
public class ComplexAlgorithmImpl {
BubbleSortAlgorithm bubbleSortAlgorithm = new BubbleSortAlgorithm();
@Component public class ComplexAlgorithmImpl {
@Autowired private SortAlgorithm sortAlgorithm;
@Component public class ComplexAlgorithmImpl {
@Autowired private SortAlgorithm sortAlgorithm;
@Component public class QuickSortAlgorithm implements SortAlgorithm {
public interface SortAlgorithm { public int[] sort(int[] numbers); }