Skip to content

Instantly share code, notes, and snippets.

@learnit-codeit
Created April 22, 2021 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save learnit-codeit/2828fa25c79193009b2e9a243e4836ec to your computer and use it in GitHub Desktop.
Save learnit-codeit/2828fa25c79193009b2e9a243e4836ec to your computer and use it in GitHub Desktop.
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface Controller {
/**
* The value may indicate a suggestion for a logical component name,
* to be turned into a Spring bean in case of an autodetected component.
* @return the suggested component name, if any (or empty String otherwise)
*/
@AliasFor(annotation = Component.class)
String value() default "";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment