关于AnnotationUtils.findAnnotation(User.class, Table.class) 报错问题解决

          I create a new project with appfuse-basic-struts. and after i executed mvn appfuse:full-source mvn clean mvn eclipse:eclipse and import the project into my eclipse, there is an compile error in line85 of class UserDaoHibernate: Table table = AnnotationUtils.findAnnotation(User.class, Table.class); the error message is : The method findAnnotation(Method, Class) in the type AnnotationUtils is not applicable for the arguments (Class, Class)

 

原因是是spring-core-2.0.5包出来的问题,解决办法:把2.5版本的jar改个名字放到maven依赖库中对应的位置,恢复正常。

你可能感兴趣的:(eclipse,spring,maven,struts,Appfuse)