mirror of https://github.com/halo-dev/halo
Fix the deprecation warning of support for convention-base @Component names (#7433)
#### What type of PR is this? /kind improvement #### What this PR does / why we need it: 过期的Spring @Component API #### Which issue(s) this PR fixes: Fixes #7431 #### Does this PR introduce a user-facing change? ```release-note None ```pull/7429/head
parent
6cc7cf6d22
commit
3a9e5d2010
|
@ -4,6 +4,7 @@ import java.lang.annotation.ElementType;
|
||||||
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;
|
||||||
|
import org.springframework.core.annotation.AliasFor;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -22,5 +23,6 @@ public @interface Finder {
|
||||||
*
|
*
|
||||||
* @return variable name, class simple name if not specified
|
* @return variable name, class simple name if not specified
|
||||||
*/
|
*/
|
||||||
|
@AliasFor(annotation = Service.class)
|
||||||
String value() default "";
|
String value() default "";
|
||||||
}
|
}
|
Loading…
Reference in New Issue