-1

I am new to Spring. When I am running a process, I am getting this exception. Any pointers how to get over it ?

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'odinConfigurer' defined in class path resource [CMA-dao.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.getAnnotation(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
user1548157
  • 81
  • 1
  • 2
  • 7

1 Answers1

0

looks like

you are using

     public static <A extends Annotation> A getAnnotation(AnnotatedElement element,
                                             Class<A> annotationType)

but correct signature is

    public static <A extends Annotation> A getAnnotation(Method method,
                                             Class<A> annotationType)

see java.lang.NoSuchMethodError org.springframework.core.annotation.AnnotationUtils.getAnnotation

Community
  • 1
  • 1
M Sach
  • 33,416
  • 76
  • 221
  • 314