conditional

@Conditional spring4 부터 사용가능하며, Java configuration에서 조건적으로 Spring Bean을 등록할 수 있다. @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE, ElementType.METHOD}) public @interface Conditional { /** * All {@link Condition}s that must {@linkplain Condition#matches match} * in order for the component to be registered. */ Class? extends Condition[] value(); } // Condtion.class public interface C..
깡냉쓰
'conditional' 태그의 글 목록