读书人

关于AnnotationUtils.findAnnotation(

发布时间: 2012-11-05 09:35:12 作者: rapoo

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

????????? I create a new project with appfuse-basic-struts. and after i executedmvn appfuse:full-source mvn clean mvn eclipse:eclipse and import theproject into my eclipse, there is an compile error in line85 of classUserDaoHibernate: Table table =AnnotationUtils.findAnnotation(User.class, Table.class); the errormessage 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依赖库中对应的位置,恢复正常。

读书人网 >软件架构设计

热点推荐