Posts related to tag: annotation


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 »

Spring autowiring using @Resource and @Inject annotation example

In the previous tutorial Spring @Autowired annotation example, we have performed the autowiring using @Autowired annotation on field, setter method, […] Continue reading »