Created
April 22, 2021 17:58
-
-
Save learnit-codeit/2828fa25c79193009b2e9a243e4836ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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