Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 1021 Bytes

README.md

File metadata and controls

30 lines (16 loc) · 1021 Bytes

Spring Boot REST API Learning

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.

necessary annotation for any spring boot Project Overview

  • @Component and @Autowired:

    • Demonstrates the use of @Component to define Spring beans and @Autowired to inject dependencies.
  • @Qualifier:

    • Handles bean conflicts using @Qualifier annotation when there are multiple beans of the same type.
  • @Primary:

    • Illustrates the use of @Primary to specify the primary bean when multiple beans of the same type are present.
  • Separate Configuration File:

    • Utilizes @Configuration to create separate configuration classes.

Usage

To run the project locally, follow these steps:

  1. Clone the repository:
    git clone https://github.com/ArjunDev17/springBoot_rest_api.git