How to build your own annotation in spring
A good day starts with a good mindset!
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Value("${spring.application.name}")
public @interface GetAppName {
}
///
@GetAppName
private String appName;
–END–