This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Data LDAP 3.4.0!spring-doc.cn

Namespace reference

The <repositories /> Element

The <repositories /> element 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. See “XML Configuration”. The following table describes the attributes of the <repositories /> element:spring-doc.cn

Table 1. Attributes
Name Description

base-packagespring-doc.cn

Defines the package to be scanned for repository interfaces that extend *Repository (the actual interface is determined by the specific Spring Data module) in auto-detection mode. All packages below the configured package are scanned, too. Wildcards are allowed.spring-doc.cn

repository-impl-postfixspring-doc.cn

Defines the postfix to autodetect custom repository implementations. Classes whose names end with the configured postfix are considered as candidates. Defaults to Impl.spring-doc.cn

query-lookup-strategyspring-doc.cn

Determines the strategy to be used to create finder queries. See “Query Lookup Strategies” for details. Defaults to create-if-not-found.spring-doc.cn

named-queries-locationspring-doc.cn

Defines the location to search for a Properties file containing externally defined queries.spring-doc.cn

consider-nested-repositoriesspring-doc.cn

Whether nested repository interface definitions should be considered. Defaults to false.spring-doc.cn