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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.