Skip to content

Instantly share code, notes, and snippets.

@HydrangeaPurple
Created December 28, 2020 09:05
Show Gist options
  • Save HydrangeaPurple/8ebf6ff4db29d0eff3fc0a4d3d25d819 to your computer and use it in GitHub Desktop.
Save HydrangeaPurple/8ebf6ff4db29d0eff3fc0a4d3d25d819 to your computer and use it in GitHub Desktop.
多数据源事务切面注解
package com.tydic.utils.common.annotation;
import java.lang.annotation.*;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface MultiTransactional {
String[] value() default "";
Class<? extends Throwable>[] rollbackFor() default {};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment