**[Yanming Zhou](https://jira.spring.io/secure/ViewProfile.jspa?name=quaff)** opened **[SPR-16066](https://jira.spring.io/browse/SPR-16066?redirect=false)** and commented `@Service` is a specialization of `@Component`, like `@GetMapping` is a specialization of `@RequestMapping`, `@Service` should add `@AliasFor` like `@GetMapping` ```java @Component public @interface Service { @AliasFor(annotation=Component.class) String value() default ""; } ``` We can get metadata from annotation via unified code ```java Component component = AnnotatedElementUtils.getMergedAnnotation(clazz, @Component.class); String beanName = component.value(); ``` --- **Referenced from:** commits https://github.com/spring-projects/spring-framework/commit/43b5e21947f3ad9682ae39cd8b8b5ae4b8f72c14, https://github.com/spring-projects/spring-framework/commit/625737f90ad07b08a301252a8b5a4d2f8652817d