Posts related to tag: annotation


Spring @RestControllerAdvice Annotation Example

Spring Framework, with its extensive support for building RESTful APIs, offers a convenient way to handle exceptions using the @RestControllerAdvice […] Continue reading »

Simplify Data Access with Spring’s @Repository Annotation

In modern web development, efficient data access is crucial to building robust and scalable applications. The Spring Framework, with its […] Continue reading »

Spring Data JPA @Query Annotation Example

On this page, we’ll learn to write custom queries using Spring Data JPA @Query annotation. @Query annotation supports both JPQL […] Continue reading »

@ConfigurationProperties Annotation in Spring Boot

@ConfigurationProperties annotation is used to pulling up a “group of configuration values” from the properties file. @ConfigurationProperties annotation is also […] Continue reading »

Spring @Value Annotation Example

In this guide, we’ll show you some tips & tricks of Spring @Value annotation. @Value annotation is used to assign […] Continue reading »

Spring Task Scheduler Example using @Scheduled Annotation

This guide walks you through the steps for scheduling tasks with Spring. We can schedule the execution of the task […] Continue reading »

Spring @RestController, @GetMapping, @PostMapping, @PutMapping, and @DeleteMapping Annotation Example

This page will walk through Spring @RestController, @GetMapping, @PostMapping, @PutMapping, and @DeleteMapping Annotation Example.  To handle the HTTP request in the […] Continue reading »

Spring MVC @Controller, @RequestMapping, @RequestParam, and @PathVariable Annotation Example

In this tutorial, you will learn Spring MVC @Controller, @RequestMapping, @RequestParam, and @PathVariable annotation example. These annotations are frequently used while developing […] Continue reading »

Spring MVC Database Connectivity Example using Annotation and Java Based Configuration

In this tutorial, we will learn how to connect Spring MVC application to the database using annotation and Java-based configuration. […] Continue reading »

Spring 5 MVC Hello World using Annotation

In the previous tutorial, we have created a simple Spring MVC hello world example by using XML configuration. But in […] Continue reading »

Spring AOP + AspectJ @Pointcut Annotation Example

In this tutorial, we show you how to use @Pointcut annotation with Spring AOP and AspectJ. A pointcut is a […] Continue reading »

1 2