{"id":19944746,"url":"https://github.com/rameshmf/all-spring-and-spring-boot-annotations","last_synced_at":"2025-06-25T03:41:48.333Z","repository":{"id":186526089,"uuid":"675305296","full_name":"RameshMF/all-spring-and-spring-boot-annotations","owner":"RameshMF","description":"Check out all the spring core, spring MVC, spring boot, spring cloud, spring data jpa annotations with examples, tutorials, andguides.","archived":false,"fork":false,"pushed_at":"2023-08-06T14:00:02.000Z","size":4,"stargazers_count":24,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-12T05:12:07.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RameshMF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-06T13:38:03.000Z","updated_at":"2024-09-19T19:03:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9f8cfcc-b6a0-4518-8416-845a97dc96c5","html_url":"https://github.com/RameshMF/all-spring-and-spring-boot-annotations","commit_stats":null,"previous_names":["rameshmf/all-spring-and-spring-boot-annotations"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RameshMF%2Fall-spring-and-spring-boot-annotations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RameshMF%2Fall-spring-and-spring-boot-annotations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RameshMF%2Fall-spring-and-spring-boot-annotations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RameshMF%2Fall-spring-and-spring-boot-annotations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RameshMF","download_url":"https://codeload.github.com/RameshMF/all-spring-and-spring-boot-annotations/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241374518,"owners_count":19952544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T00:22:43.436Z","updated_at":"2025-03-01T13:41:52.538Z","avatar_url":"https://github.com/RameshMF.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# List of Spring Framework and Spring Boot Annotations\nCheck out all the spring core, spring MVC, spring boot, spring cloud, and spring data jpa annotations with examples, tutorials, and guides. Click on each annotation to learn in-depth with examples. I will continue adding more annotations here.\n\u003ch1 style=\"text-align: left;\"\u003e1. Spring Core Annotations\u003c/h1\u003e\n\u003cdiv\u003e \u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/11/spring-component-annotation-example.html\" target=\"_blank\"\u003e@Component Annotation\u003c/a\u003e\u003c/b\u003e\n   : The @Component annotation indicates that an annotated class is a “spring bean/component”. The @Component annotation tells the Spring container to automatically create Spring bean.\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e \u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/09/spring-autowired-annotation-with-example.html\" target=\"_blank\"\u003e@Autowired Annotation\u003c/a\u003e\u003c/b\u003e\n   : The @Autowired annotation is used to inject the bean automatically. The @Autowired annotation is used in constructor injection, setter injection, and field injection\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e \u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/06/spring-qualifier-annotation-example.html\" target=\"_blank\"\u003e@Qualifier Annotation\u003c/a\u003e\u003c/b\u003e\n   : @Qualifier annotation is used in conjunction with Autowired to avoid confusion when we have two or more beans configured for the same type.\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e \u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/10/spring-primary-annotation-example.html\" target=\"_blank\"\u003e@Primary Annotation\u003c/a\u003e\u003c/b\u003e\n   : We use @Primary annotation to give higher preference to a bean when there are multiple beans of the same type.\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e \u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/09/spring-bean-annotation-with-example.html\" target=\"_blank\"\u003e@Bean Annotation\u003c/a\u003e\u003c/b\u003e\n   : @Bean annotation indicates that a method produces a bean to be managed by the Spring container. The @Bean annotation is usually declared in the Configuration class to create Spring Bean definitions.\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e \u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/10/spring-lazy-annotation-example.html\" target=\"_blank\"\u003e@Lazy Annotation\u003c/a\u003e\u003c/b\u003e\n   : By default, Spring creates all singleton beans eagerly at the startup/bootstrapping of the application context. You can load the Spring beans lazily (on-demand) using @Lazy annotation.\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e \u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/10/spring-scope-annotation-with-prototype.html\" target=\"_blank\"\u003e@Scope Annotation\u003c/a\u003e\u003c/b\u003e\n   : The @Scope annotation is used to define the scope of the bean.\u0026nbsp;We use \u003ci\u003e@Scope\u003c/i\u003e to define the scope of a \u003ci\u003e@Component\u003c/i\u003e class or a \u003ci\u003e@Bean\u003c/i\u003e definition.\u0026nbsp;\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e \u003cb\u003e\u003ca href=\"https://www.javaguides.net/2023/02/spring-value-annotation-example.html\" target=\"_blank\"\u003e@Value Annotation\u003c/a\u003e\u003c/b\u003e\n   : Spring @Value annotation is used to assign default values to variables and method arguments.\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/09/spring-propertysource-annotation-with-example.html\" target=\"_blank\"\u003e@PropertySource Annotation\u003c/a\u003e\u003c/b\u003e\n   : Spring @PropertySource annotation is used to provide properties files to Spring Environment. Spring PropertySource annotation is repeatable, which means you can have multiple PropertySource on a Configuration class.\n\u003c/div\u003e\u003cbr /\u003e\n\u003ch1 style=\"text-align: left;\"\u003e2. Spring MVC Web Annotations\u003c/h1\u003e\n\u003cdiv\u003e \u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/11/the-spring-controller-and-restcontroller-annotations-with-examples.html\" target=\"_blank\"\u003e@Controller Annotation\u003c/a\u003e\u003c/b\u003e\n   : Spring provides @Controller annotation to make a Java class as a Spring MVC controller. The @Controller annotation indicates that a particular class serves the role of a controller.\u0026nbsp;\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/11/spring-requestbody-and-responsebody-annotations.html\" target=\"_blank\"\u003e@ResponseBody Annotation\u003c/a\u003e\u003c/b\u003e\n   : The @ResponseBody annotation tells a controller that the object returned is automatically serialized into JSON and passed back into the HttpResponse object.\u0026nbsp;\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/11/the-spring-controller-and-restcontroller-annotations-with-examples.html\" target=\"_blank\"\u003e@RestController Annotation\u003c/a\u003e\u003c/b\u003e\n   : Spring 4.0 introduced @RestController, a specialized version of the @Controller which is a convenience annotation that does nothing more than add the @Controller and @ResponseBody annotations.\u0026nbsp;\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/11/spring-web-mvc-annotations.html\" target=\"_blank\"\u003e@RequestMapping Annotation\u003c/a\u003e\u003c/b\u003e\n   : \u003cb\u003e@RequestMapping\u003c/b\u003e is the most common and widely used annotation in Spring MVC. It is used to map web requests onto specific handler classes and/or handler methods.\u0026nbsp;\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2023/07/getmapping-spring-boot-example.html\" target=\"_blank\"\u003e@GetMapping Annotation\u003c/a\u003e\u003c/b\u003e\n   : The GET HTTP request is used to get single or multiple resources and \u003ci\u003e@GetMapping\u003c/i\u003e annotation for mapping HTTP GET requests onto specific handler methods.\u0026nbsp;\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2023/07/postmapping-spring-boot-example.html\" target=\"_blank\"\u003e@PostMapping Annotation\u003c/a\u003e\u003c/b\u003e\n   : The POST HTTP method is used to create a resource and \u003ci\u003e@PostMapping\u003c/i\u003e annotation for mapping HTTP POST requests onto specific handler methods.\u0026nbsp;\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2022/04/putmapping-spring-boot-example.html\" target=\"_blank\"\u003e@PutMapping Annotation\u003c/a\u003e\u003c/b\u003e\n   : The PUT HTTP method is used to update the resource and \u003ci\u003e@PutMapping\u003c/i\u003e annotation for mapping HTTP PUT requests onto specific handler methods.\u0026nbsp;\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2023/07/deletemapping-spring-boot-example.html\" target=\"_blank\"\u003e@DeleteMapping Annotation\u003c/a\u003e\u003c/b\u003e\n   : The DELETE HTTP method is used to delete the resource and \u003ci\u003e@DeleteMapping\u003c/i\u003e annotation for mapping HTTP DELETE requests onto specific handler methods.\u0026nbsp;\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\n   \u003cb\u003e\u003ca href=\"https://www.javaguides.net/2023/07/patchmapping-spring-boot-example.html\" target=\"_blank\"\u003e@PatchMapping Annotation\u003c/a\u003e\u003c/b\u003e\n   : The PATCH HTTP method is used to update the resource partially and the \u003ci\u003e@PatchMapping\u003c/i\u003e annotation is for mapping HTTP PATCH requests onto specific handler methods.\u003cbr /\u003e\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2019/08/spring-boot-pathvariable-annotation.html\" target=\"_blank\"\u003e@PathVariable Annotation\u003c/a\u003e\u003c/b\u003e\n   : Spring boot @PathVariable annotation is used on a method argument to bind it to the value of a URI template variable.\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2019/08/spring-boot-responsestatus-annotation.html\" target=\"_blank\"\u003e@ResponseStatus Annotation\u003c/a\u003e\u003c/b\u003e\n   : The @ResponseStatus annotation is a Spring Framework annotation that is used to customize the HTTP response status code returned by a controller method in a Spring MVC or Spring Boot application.\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/11/spring-service-annotation.html\" target=\"_blank\"\u003e@Service Annotation\u003c/a\u003e\u003c/b\u003e\n   : @Service annotation is used to create Spring beans at the Service layer.\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/11/spring-repository-annotation.html\" target=\"_blank\"\u003e@Repository Annotation\u003c/a\u003e\u003c/b\u003e\n   : @Repository is used to create Spring beans for the repositories at the DAO layer.\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2023/07/spring-controller-annotation-example.html\" target=\"_blank\"\u003e@Controller Annotation\u003c/a\u003e\u003c/b\u003e\n   : @Controller is used to create Spring beans at the controller layer.\n\u003c/div\u003e\u003cbr /\u003e\n\u003ch1 style=\"text-align: left;\"\u003e3. Spring Boot Annotations\u003c/h1\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/09/spring-boot-springbootapplication-annotation-with-example.html\" target=\"_blank\"\u003e@SpringBootApplication annotation\u003c/a\u003e\u003c/b\u003e\n   : The @SpringBootApplication annotation is a core annotation in the Spring Boot framework. It is used to mark the main class of a Spring Boot application. This annotation is a combination of three other annotations: @Configuration, @EnableAutoConfiguration, and @ComponentScan.\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/09/spring-boot-enableautoconfiguration-annotation-with-example.html\" target=\"_blank\"\u003e@EnableAutoConfiguration annotation\u003c/a\u003e\u003c/b\u003e\n   : @EnableAutoConfiguration annotation enables Spring Boot's auto-configuration feature, which automatically configures the application based on the classpath dependencies and the environment.\u0026nbsp;\u003cbr /\u003e\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/10/spring-boot-creating-asynchronous-methods-using-async-annotation.html\" target=\"_blank\"\u003e@Async Annotation\u003c/a\u003e\u003c/b\u003e\n   : @Async annotation can be provided on a method so that invocation of that method will occur asynchronously.\n\u003c/div\u003e\u003cbr /\u003e\n\u003ch1 style=\"text-align: left;\"\u003e4. Spring Data JPA Annotations\u003c/h1\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2018/11/spring-data-jpa-creating-database-queries-using-query-annotation.html\" target=\"_blank\"\u003e@Query Annotation\u003c/a\u003e\u003c/b\u003e\n   : In Spring Data JPA, the \u003ci\u003e@Query\u003c/i\u003e annotation is used to define custom queries. It allows developers to execute both JPQL (Java Persistence Query Language) and native SQL queries.\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\n\u003ch1 style=\"text-align: left;\"\u003e5. Spring Boot Testing Annotations\u003c/h1\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2022/03/springboottest-spring-boot-example.html\" target=\"_blank\"\u003e@SpringBootTest annotation\u003c/a\u003e\u003c/b\u003e\n   : Spring Boot provides @SpringBootTest annotation for Integration testing. This annotation creates an application context and loads the full application context.              \n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2022/03/datajpatest-spring-boot-example.html\" target=\"_blank\"\u003e@DataJpaTest annotation\u003c/a\u003e\u003c/b\u003e\n   : Spring Boot provides the @DataJpaTest annotation to test the persistence layer components that will autoconfigure the in-memory embedded database for testing purposes.\n\u003c/div\u003e\u003cbr /\u003e\n\u003cdiv\u003e\u003cb\u003e\u003ca href=\"https://www.javaguides.net/2023/07/spring-boot-webmvctest-annotation.html\" target=\"_blank\"\u003e@WebMvcTest annotation\u003c/a\u003e\u003c/b\u003e\n   :The @WebMvcTest annotation is used to perform unit tests on Spring MVC controllers. It allows you to test the behavior of controllers, request mappings, and HTTP responses in a controlled and isolated environment.\n\u003c/div\u003e\u003cbr /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frameshmf%2Fall-spring-and-spring-boot-annotations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frameshmf%2Fall-spring-and-spring-boot-annotations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frameshmf%2Fall-spring-and-spring-boot-annotations/lists"}