O'Reilly logo

Spring Recipes: A Problem-Solution Approach, Third Edition by Daniel Rubio, Gary Mak, Josh Long, Marten Deinum

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 3

image

Spring Annotation Driven Core Tasks

In this chapter, you’ll learn about Spring’s annotation driven tasks. Both annotation driven tasks and regular tasks — like the ones in the previous chapter — can achieve the same end results. The only difference between these types of tasks is how you setup an application and its POJOs (Plain Old Java Objects).

Annotations are declarations added to Java source code to associate configurations with a class or method. The general syntax for Java annotations is the @ symbol, followed by the annotation name and optional parameters inside parenthesis (e.g., @Component("sequenceGenerator")).

This means ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required