diff --git a/api/src/main/java/run/halo/app/theme/finders/Finder.java b/api/src/main/java/run/halo/app/theme/finders/Finder.java index 6a24311a6..7948059ef 100644 --- a/api/src/main/java/run/halo/app/theme/finders/Finder.java +++ b/api/src/main/java/run/halo/app/theme/finders/Finder.java @@ -4,6 +4,7 @@ import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import org.springframework.core.annotation.AliasFor; import org.springframework.stereotype.Service; /** @@ -22,5 +23,6 @@ public @interface Finder { * * @return variable name, class simple name if not specified */ + @AliasFor(annotation = Service.class) String value() default ""; } \ No newline at end of file