注释类型 ConditionalOnRepositoryType
@Retention(RUNTIME) @Target({TYPE,METHOD}) @Documented @Conditional(org.springframework.boot.autoconfigure.data.OnRepositoryTypeCondition.class) public @interface ConditionalOnRepositoryType
Conditional
that only matches when a particular type of Spring Data repository has been enabled.- 从以下版本开始:
- 2.0.0
必需元素概要
所需元素 修饰符和类型 必需的元素 说明 String
store
The name of the store that backs the repositories.RepositoryType
type
The required repository type.
type
RepositoryType type
The required repository type.- 返回:
- the required repository type