You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/config/EnableMongoRepositories.java
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -54,8 +54,20 @@
54
54
String[] value() default {};
55
55
56
56
/**
57
-
* Base packages to scan for annotated components. {@link #value()} is an alias for (and mutually exclusive with) this
58
-
* attribute. Use {@link #basePackageClasses()} for a type-safe alternative to String-based package names.
57
+
* Base packages to scan for annotated components.
58
+
* <p>
59
+
* {@link #value} is an alias for (and mutually exclusive with) this attribute.
60
+
* <p>
61
+
* Supports {@code ${…}} placeholders which are resolved against the {@link org.springframework.core.env.Environment
62
+
* Environment} as well as Ant-style package patterns — for example, {@code "org.example.**"}.
63
+
* <p>
64
+
* Multiple packages or patterns may be specified, either separately or within a single {@code String} — for
65
+
* example, {@code {"org.example.config", "org.example.service.**"}} or
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/config/EnableReactiveMongoRepositories.java
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -57,8 +57,20 @@
57
57
String[] value() default {};
58
58
59
59
/**
60
-
* Base packages to scan for annotated components. {@link #value()} is an alias for (and mutually exclusive with) this
61
-
* attribute. Use {@link #basePackageClasses()} for a type-safe alternative to String-based package names.
60
+
* Base packages to scan for annotated components.
61
+
* <p>
62
+
* {@link #value} is an alias for (and mutually exclusive with) this attribute.
63
+
* <p>
64
+
* Supports {@code ${…}} placeholders which are resolved against the {@link org.springframework.core.env.Environment
65
+
* Environment} as well as Ant-style package patterns — for example, {@code "org.example.**"}.
66
+
* <p>
67
+
* Multiple packages or patterns may be specified, either separately or within a single {@code String} — for
68
+
* example, {@code {"org.example.config", "org.example.service.**"}} or
0 commit comments