Appendix A. Namespace reference

A.1 The <repositories /> element

The <repositories /> triggers the setup of the Spring Data repository infrastructure. The most important attribute is base-package which defines the package to scan for Spring Data repository interfaces.[2]

Table A.1. Attributes

base-packageDefines the package to be used to be scanned for repository interfaces extending *Repository (actual interface is determined by specific Spring Data module) in auto detection mode. All packages below the configured package will be scanned, too. Wildcards are also allowed.
repository-impl-postfixDefines the postfix to autodetect custom repository implementations. Classes whose names end with the configured postfix will be considered as candidates. Defaults to Impl.
query-lookup-strategyDetermines the strategy to be used to create finder queries. See the section called “Query lookup strategies” for details. Defaults to create-if-not-found.