File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/config Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 5656 String [] value () default {};
5757
5858 /**
59- * Base packages to scan for annotated components. {@link #value()} is an alias for (and mutually exclusive with) this
60- * attribute. Use {@link #basePackageClasses()} for a type-safe alternative to String-based package names.
59+ * Base packages to scan for annotated components.
60+ * <p>
61+ * {@link #value} is an alias for (and mutually exclusive with) this attribute.
62+ * <p>
63+ * Supports {@code ${…}} placeholders which are resolved against the {@link org.springframework.core.env.Environment
64+ * Environment} as well as Ant-style package patterns — for example, {@code "org.example.**"}.
65+ * <p>
66+ * Multiple packages or patterns may be specified, either separately or within a single {@code String} — for
67+ * example, {@code {"org.example.config", "org.example.service.**"}} or
68+ * {@code "org.example.config, org.example.service.**"}.
69+ * <p>
70+ * Use {@link #basePackageClasses} for a type-safe alternative to String-based package names.
71+ *
72+ * @see org.springframework.context.ConfigurableApplicationContext#CONFIG_LOCATION_DELIMITERS
6173 */
6274 String [] basePackages () default {};
6375
You can’t perform that action at this time.
0 commit comments