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.
-
@Component
and@Autowired
:- Demonstrates the use of
@Component
to define Spring beans and@Autowired
to inject dependencies.
- Demonstrates the use of
-
@Qualifier
:- Handles bean conflicts using
@Qualifier
annotation when there are multiple beans of the same type.
- Handles bean conflicts using
-
@Primary
:- Illustrates the use of
@Primary
to specify the primary bean when multiple beans of the same type are present.
- Illustrates the use of
-
Separate Configuration File:
- Utilizes
@Configuration
to 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