U5 03 Spring IoC Concepts
U5 03 Spring IoC Concepts
• @Component
• public class Car {
• @Autowired
• private Engine engine;
• }
Benefits of IoC
• - Loose coupling
• - Reusability
• - Easier testing
• - Centralized configuration
• - Better manageability