首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

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

2012-11-05 
关于AnnotationUtils.findAnnotation(User.class, Table.class) 报错问题解决????????? I create a new pr

关于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依赖库中对应的位置,恢复正常。

热点排行