注释类型 ConditionalOnClass

    • 可选元素概要

      可选元素 
      修饰符和类型可选元素说明
      String[]name
      The classes names that must be present.
      Class<?>[]value
      The classes that must be present.
    • 元素详细资料

      • value

        Class<?>[] value
        The classes that must be present. Since this annotation is parsed by loading class bytecode, it is safe to specify classes here that may ultimately not be on the classpath, only if this annotation is directly on the affected component and not if this annotation is used as a composed, meta-annotation. In order to use this annotation as a meta-annotation, only use the name() attribute.
        返回:
        the classes that must be present
        默认值:
        {}
      • name

        String[] name
        The classes names that must be present.
        返回:
        the class names that must be present.
        默认值:
        {}