Skip to content

Commit a7fab8a

Browse files
committed
Polishing.
1 parent 884dfb6 commit a7fab8a

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/main/java/org/springframework/data/map/repository/config/EnableMapRepositories.java

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,25 @@
6060

6161
/**
6262
* Alias for the {@link #basePackages()} attribute. Allows for more concise annotation declarations e.g.:
63-
* {@code @EnableJpaRepositories("org.my.pkg")} instead of {@code @EnableJpaRepositories(basePackages="org.my.pkg")}.
63+
* {@code @EnableMapRepositories("org.my.pkg")} instead of {@code @EnableMapRepositories(basePackages="org.my.pkg")}.
6464
*/
6565
String[] value() default {};
6666

6767
/**
68-
* Base packages to scan for annotated components. {@link #value()} is an alias for (and mutually exclusive with) this
69-
* attribute. Use {@link #basePackageClasses()} for a type-safe alternative to String-based package names.
68+
* Base packages to scan for annotated components.
69+
* <p>
70+
* {@link #value} is an alias for (and mutually exclusive with) this attribute.
71+
* <p>
72+
* Supports {@code ${…}} placeholders which are resolved against the {@link org.springframework.core.env.Environment
73+
* Environment} as well as Ant-style package patterns &mdash; for example, {@code "org.example.**"}.
74+
* <p>
75+
* Multiple packages or patterns may be specified, either separately or within a single {@code String} &mdash; for
76+
* example, {@code {"org.example.config", "org.example.service.**"}} or
77+
* {@code "org.example.config, org.example.service.**"}.
78+
* <p>
79+
* Use {@link #basePackageClasses} for a type-safe alternative to String-based package names.
80+
*
81+
* @see org.springframework.context.ConfigurableApplicationContext#CONFIG_LOCATION_DELIMITERS
7082
*/
7183
String[] basePackages() default {};
7284

0 commit comments

Comments
 (0)