AnnotationUtils.getAttributeAliasMap() has thrown an AnnotationConfigurationException

org.springframework.core.annotation.AnnotationConfigurationException
Javadoc
Thrown by {@link AnnotationUtils} and synthesized annotations if an annotation is improperly configured. @author Sam Brannen @since 4.2 @see AnnotationUtils @see SynthesizedAnnotation
at org.springframework.core.annotation.AnnotationUtils$AliasDescriptor.validate
(Source)
at org.springframework.core.annotation.AnnotationUtils$AliasDescriptor.from
(Source)
at org.springframework.core.annotation.AnnotationUtils.getAttributeAliasNames
(Source)
at org.springframework.core.annotation.AnnotationUtils.getAttributeAliasMap
(Source)
4 frames hidden

Typical Exception Messages

  1. Attribute [value] in annotation [org.springframework.cloud.netflix.feign.FeignClient] must be declared as an @AliasFor [serviceId], not [name].
  2. Attribute 'value' in annotation [org.springframework.cloud.netflix.feign.FeignClient] must be declared as an @AliasFor [serviceId], not [name].

Origin

Specific cases

We have seen this error pattern in the following webpages (1)

  1. tjuchniewiczvia GitHub1 year ago
    Attribute [value] in annotation [org.springframework.cloud.netflix.feign.FeignClient] must be declared as an @AliasFor [serviceId], not [name].