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
mwwcdk 2025-05-15 00:38:36 +08:00 committed by GitHub
parent 6cc7cf6d22
commit 3a9e5d2010
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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 "";
}