when I run my junit test I can get right result and the data can be stored into database.
when I deploy my project into tomcat, I got this exception.
my spri
The correct signature is
public static A getAnnotation(Method method,
Class annotationType)
but something tries to call
public static A getAnnotation(AnnotatedElement element,
Class annotationType)
The second method was introduced with spring 3.2.0 (at least I haven't found in APIs upto spring 3.0) spring 3.1 (thanks to Sebastien) so you most likely have used spring 3.1 or higher for building your application and a version prior to 3.1 on tomcat. Investigate in that direction.