Skip to content

Commit 2742687

Browse files
author
Thomas Darimont
committed
DATACMNS-682 - Fix abrupt documentation line ending.
Completed description for packages to scan customisation with JavaConfig.
1 parent e3df890 commit 2742687

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/asciidoc/repositories.adoc

+2-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ or via <<repositories.create-instances,XML configuration>>:
147147
</beans>
148148
----
149149
+
150-
The JPA namespace is used in this example. If you are using the repository abstraction for any other store, you need to change this to the appropriate namespace declaration of your store module which should be exchanging `jpa` in favor of, for example, `mongodb`. Also, note that the JavaConfig variant doesn't configure a package explictly as the package of the annotated class is used by default. To customize the package to scan
150+
The JPA namespace is used in this example. If you are using the repository abstraction for any other store, you need to change this to the appropriate namespace declaration of your store module which should be exchanging `jpa` in favor of, for example, `mongodb`. Also, note that the JavaConfig variant doesn't configure a package explictly as the package of the annotated class is used by default.
151+
The packages to scan can be customized via the `basePackages` attribute of the data-store specific Repository annotation like `@EnableJpaRepositories` or `@EnableMongoRepositories`. For more concise declarations the `value` attribute can be used as an alias for `basePackages`.
151152

152153
. Get the repository instance injected and use it.
153154
+

0 commit comments

Comments
 (0)