/** * TxConfig is used to configure configName for Tx interceptor */ @Inherited @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE, ElementType.METHOD}) public @interface TxConfig { String value(); // configName of Config }
加了类注解后事务好似了,谢谢
@TxConfig("oracle") public class ReadyClueSerice {