I just upgraded Spring Boot version to 2.2.2 from 2.1.8 and noticed a weird exception:
Caused by: org.springframework.core.annotation.AnnotationConfigurationException: Attribute 'value' in annotation [en.example.package.PostApi] must be declared as an @aliasfor 'path', not 'path'.
Whole code for my custom annotation.
public @interface PostApi {
@AliasFor(annotation = ResponseStatus.class, attribute = "code")
HttpStatus status() default HttpStatus.OK;
@AliasFor("value")
String[] path() default {};
@AliasFor(annotation = RequestMapping.class, attribute = "path")
String[] value() default {};
@AliasFor(annotation = RequestMapping.class, attribute = "consumes")
String[] consumes() default { MediaType.APPLICATION_JSON_VALUE };
}
Any ideas what is going on?
I just upgraded Spring Boot version to 2.2.2 from 2.1.8 and noticed a weird exception:
Whole code for my custom annotation.
Any ideas what is going on?