Introduction to Auto Wiring
Creating Interfaces and Implementations
Computer interface.Laptop and Desktop classes.Dependency Injection
Developer class to depend on the Computer interface instead of a specific implementation.Bean Creation and Injection
Auto Wiring Mechanism
@Autowired annotation and XML configuration for auto wiring.Resolving Conflicts in Auto Wiring
@Primary annotation to resolve conflicts.Retrieving Beans by Type
@Primary annotation can be used to specify a default bean when multiple candidates are available.This video serves as a comprehensive guide to understanding auto wiring in the Spring framework, emphasizing practical coding examples and best practices.
0:00 welcome back aliens my name is z readyy and let's continue this series on Spring framework now to this point we were able to achieve Constructor and seter injection it's time to talk about Auto wiring if you remember when we talked about spring boot we have done this in Spring boot we have done with auto wiring but here also without spring boot let's try to explore it and even before we do that if you remember the spring boot videos we have talked about different classes and interfaces because in this case we only have laptop and Dev
0:32 developer uh what we don't have is computer interface and desktop implementation of it so let's create those and let's get forward so what I will do is I will just go back here and say let me just copy and paste or maybe use the same a laptop class but this time we'll name it as desktop and in desktop we'll change certain things I will just close this part and in desktop what I will do is when I say uh the structor should be desktop created and in the compiling I
🔒 The full, searchable transcript is available with Pro.