File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/config Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 53
53
/**
54
54
* Alias for the {@link #basePackages()} attribute. Allows for more concise annotation declarations e.g.:
55
55
* {@code @EnableJpaRepositories("org.my.pkg")} instead of {@code @EnableJpaRepositories(basePackages="org.my.pkg")}.
56
+ * <p>
57
+ * Supports Ant-style wildcards for flexible package matching. See {@link #basePackages()} for more details and examples.
56
58
*/
57
59
String [] value () default {};
58
60
59
61
/**
60
62
* Base packages to scan for annotated components. {@link #value()} is an alias for (and mutually exclusive with) this
61
63
* attribute. Use {@link #basePackageClasses()} for a type-safe alternative to String-based package names.
64
+ * <p>
65
+ * This attribute supports Ant-style wildcards for flexible package matching. For example,
66
+ * {@code "com.example.**.repository"} will scan the {@code repository} package in all sub-packages of
67
+ * {@code com.example}.
62
68
*/
63
69
String [] basePackages () default {};
64
70
You can’t perform that action at this time.
0 commit comments