@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Component public @interface Controller
This annotation serves as a specialization of @Component
,
allowing for implementation classes to be autodetected through classpath scanning.
It is typically used in combination with annotated handler methods based on the
org.springframework.web.bind.annotation.RequestMapping
annotation.
Component
,
org.springframework.web.bind.annotation.RequestMapping
,
ClassPathBeanDefinitionScanner
@AliasFor(annotation=Component.class) public abstract String value