接口的使用
org.springframework.context.annotation.ConditionContext
使用ConditionContext的程序包 程序包 说明 org.springframework.context.annotation Annotation support for the Application Context, including JSR-250 "common" annotations, component-scanning, and Java-based metadata for creating Spring-managed objects.org.springframework.context.annotation中ConditionContext的使用
参数类型为ConditionContext的org.springframework.context.annotation中的方法 修饰符和类型 方法 说明 boolean
Condition. matches(ConditionContext context, AnnotatedTypeMetadata metadata)
Determine if the condition matches.