목차

SpringFramework Meta Annotation

예: @Transactional override

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Transactional("myDbTransactionManager")
public @interface MyDbTransactional {
 
    @AliasFor(annotation = Transactional.class)
    Propagation propagation() default Propagation.REQUIRED;
 
    @AliasFor(annotation = Transactional.class)
    Isolation isolation() default Isolation.DEFAULT;
 
    @AliasFor(annotation = Transactional.class)
    int timeout() default -1;
 
    @AliasFor(annotation = Transactional.class)
    boolean readOnly() default false;
...
}

참조