we should name all class (‘bbb’)
and we can use that name inside the Qualifier
5. Loose coupling, Testability, Reusability
6. We don’t want to install server and configure all things , by Springboot autoconfiguration we can do this.
1.What is Dependency injection?
2. What is @Autoconfiguration?
1.In DI, the dependencies required by a class are “injected” or provided to it by an external entity, typically a framework or a container. This removes the responsibility of creating and managing dependencies from the class itself, resulting in more modular and reusable code.
2.@AutoConfiguration is an annotation used to enable or disable automatic configuration of beans based on classpath scanning and the presence of certain dependencies.
1.No spring container will take only one objects , cause of singleton class, if we have class Home it will take the object as home by using small letter as name.
2. The ConfigurableApplicationContext in Spring Boot is responsible for loading and applying the configuration properties defined in various configuration files. It can load properties from application.properties or application.yml files, as well as from externalized property sources.
3.In Spring Boot, a bean refers to an object that is managed by the Spring IoC (Inversion of Control) container. It is an instance of a class that is created, configured, and assembled by the container based on the configuration metadata provided by the developer. T
4.Even after creating two objects only one time constructor is called .
5. You should use the @Scope Annotations
@Scope = (value =’prototype);
6. Setup default configuration, starts spring application context, starts , stops tomcat server, class path scan
7.We will be Getting Null pointer Exception .