Annotation Interface Controller


@Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface 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 cn.taketoday.web.annotation.RequestMapping annotation.

从以下版本开始:
2018-08-23 11:16
作者:
Arjen Poutsma, Juergen Hoeller, Harry Yang
另请参阅:
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    Controller name or a bean name
  • 元素详细资料

    • value

      String[] value
      Controller name or a bean name
      默认值:
      {}