@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
RequestMapping
annotation.
Component
,
RequestMapping
,
ClassPathBeanDefinitionScanner
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
value
The value may indicate a suggestion for a logical component name,
to be turned into a Spring bean in case of an autodetected component.
|