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 ...

Get Spring Recipes: A Problem-Solution Approach, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.