Browse Source

Document placeholder and Ant-style pattern support for `@Enable…Repositories`.

See spring-projects/spring-data-commons#3366
3.4.x
Mark Paluch 3 months ago
parent
commit
12d155136c
No known key found for this signature in database
GPG Key ID: 55BC6374BAA9D973
  1. 16
      spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/config/EnableJdbcRepositories.java
  2. 16
      spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/repository/config/EnableR2dbcRepositories.java

16
spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/config/EnableJdbcRepositories.java

@ -59,8 +59,20 @@ public @interface EnableJdbcRepositories { @@ -59,8 +59,20 @@ public @interface EnableJdbcRepositories {
String[] value() default {};
/**
* Base packages to scan for annotated components. {@link #value()} is an alias for (and mutually exclusive with) this
* attribute. Use {@link #basePackageClasses()} for a type-safe alternative to String-based package names.
* Base packages to scan for annotated components.
* <p>
* {@link #value} is an alias for (and mutually exclusive with) this attribute.
* <p>
* Supports {@code ${}} placeholders which are resolved against the {@link org.springframework.core.env.Environment
* Environment} as well as Ant-style package patterns &mdash; for example, {@code "org.example.**"}.
* <p>
* Multiple packages or patterns may be specified, either separately or within a single {@code String} &mdash; for
* example, {@code {"org.example.config", "org.example.service.**"}} or
* {@code "org.example.config, org.example.service.**"}.
* <p>
* Use {@link #basePackageClasses} for a type-safe alternative to String-based package names.
*
* @see org.springframework.context.ConfigurableApplicationContext#CONFIG_LOCATION_DELIMITERS
*/
String[] basePackages() default {};

16
spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/repository/config/EnableR2dbcRepositories.java

@ -54,8 +54,20 @@ public @interface EnableR2dbcRepositories { @@ -54,8 +54,20 @@ public @interface EnableR2dbcRepositories {
String[] value() default {};
/**
* Base packages to scan for annotated components. {@link #value()} is an alias for (and mutually exclusive with) this
* attribute. Use {@link #basePackageClasses()} for a type-safe alternative to String-based package names.
* Base packages to scan for annotated components.
* <p>
* {@link #value} is an alias for (and mutually exclusive with) this attribute.
* <p>
* Supports {@code ${}} placeholders which are resolved against the {@link org.springframework.core.env.Environment
* Environment} as well as Ant-style package patterns &mdash; for example, {@code "org.example.**"}.
* <p>
* Multiple packages or patterns may be specified, either separately or within a single {@code String} &mdash; for
* example, {@code {"org.example.config", "org.example.service.**"}} or
* {@code "org.example.config, org.example.service.**"}.
* <p>
* Use {@link #basePackageClasses} for a type-safe alternative to String-based package names.
*
* @see org.springframework.context.ConfigurableApplicationContext#CONFIG_LOCATION_DELIMITERS
*/
String[] basePackages() default {};

Loading…
Cancel
Save