org.springframework.stereotype.Controller |
Indicates that an annotated class is a "Controller" (e.g. a web 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.
[Expand]
Inherited Methods | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.lang.annotation.Annotation
|