批注接口 ConditionalOnJndi
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@Conditional(org.springframework.boot.autoconfigure.condition.OnJndiCondition.class)
public @interface ConditionalOnJndi
@Conditional
that matches based on the availability of a JNDI
InitialContext
and the ability to lookup specific locations.- 从以下版本开始:
- 1.2.0
- 作者:
- Phillip Webb
-
可选元素概要
可选元素
-
元素详细资料
-
value
String[] valueJNDI Locations, one of which must exist. If no locations are specific the condition matches solely based on the presence of anInitialContext
.- 返回:
- the JNDI locations
- 默认值:
{}
-