This is a sample Spring Boot project showcasing the usage of various annotations and concepts, including @Component, @Autowired, @Qualifier, @Primary, and the creation of separate configuration files using @Configuration notation.
-
@Componentand@Autowired:- Demonstrates the use of
@Componentto define Spring beans and@Autowiredto inject dependencies.
- Demonstrates the use of
-
@Qualifier:- Handles bean conflicts using
@Qualifierannotation when there are multiple beans of the same type.
- Handles bean conflicts using
-
@Primary:- Illustrates the use of
@Primaryto specify the primary bean when multiple beans of the same type are present.
- Illustrates the use of
-
Separate Configuration File:
- Utilizes
@Configurationto create separate configuration classes.
- Utilizes
To run the project locally, follow these steps:
- Clone the repository:
git clone https://github.com/ArjunDev17/springBoot_rest_api.git