File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
src/main/java/org/springframework/data/map/repository/config Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 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 — for example, {@code "org.example.**"}.
74+ * <p>
75+ * Multiple packages or patterns may be specified, either separately or within a single {@code String} — 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
You can’t perform that action at this time.
0 commit comments