@Repository

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

@Repository is a stereotype annotation for the persistence layer that lets component scanning find and configure the DAOs and repositories without having to provide XML configuration entries for them. The annotation indicates that the class should be automatically discovered by component scanning and instantiated as a bean in the Spring application context.