提交 70783426 authored 作者: xueli.xue's avatar xueli.xue

“@JobHandler”添加“@Inherited”注解,解决BEAN在事务代理情况下,无法获取自定义代理的BUG

上级 f9f8c89e
package com.xxl.job.core.handler.annotation; package com.xxl.job.core.handler.annotation;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
...@@ -11,6 +12,7 @@ import java.lang.annotation.Target; ...@@ -11,6 +12,7 @@ import java.lang.annotation.Target;
*/ */
@Target({ElementType.TYPE}) @Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface JobHander { public @interface JobHander {
String name(); String name();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论