`
yangzb
  • 浏览: 3470201 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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

    博客分类:
  • Java
阅读更多

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

分享到:
评论

相关推荐

    使用@IdClass创建联合主键,并实现外部关联

    使用@IdClass创建联合主键,并实现外部关联

    hibernate关系映射配置.rar

    <class name="com.bjsxt.hibernate.User" table="t_user"> <generator class="native"/> <!-- --> </class> <class name="com.bjsxt.hibernate.Group" table="t_group"> ...

    MyBatis Generator 生成器把其他数据库的同名表生成下来的问题:[WARNING] Table Configuration product matched more than one t

    [WARNING] Table Configuration product matched more than one table (demo..product,shop..product,sms..product) 今天用逆向工程时,发现生成的xml有700多行,而且对应的方法生成了三次,所以导致java.lang....

    hash table spell checking

    o hashset.h - This declares a hash set class. o hashset.cpp - This defines a hash set class. o dictionary.h - This file contains the partial definition of class Dictionary. Class Dictionary inherits...

    oracle学习基础素材表-emp表-dept表等等

    imp system/oracle file='/tmp/oracle-table-20130509.dmp' log='/tmp/oracle-table-20130509.log' fromuser=oracle; 此文件是导出用户oracle下的所有表 。 按以上sql语句导入数据库即可,如果没有oracle用户...

    EntityBean配置过程.txt

    1.One Table 1.1 添加数据源 在: \jboss-4.2.2.GA\docs\examples\jca\oracle-ds.xml,拷贝oracle-ds.xml 到: \jboss-4.2.2.GA\server\all\deploy 配置内容: <jndi-name>OracleDS <connection-url>jdbc:oracle:thin:...

    数据结构作业Hash表

    o hashset.cpp - This defines a hash set class. o dictionary.h - This file contains the partial definition of class Dictionary. Class Dictionary inherits from class HashSet. o wordlist.zip - This ...

    MySQL 5.6 Reference Manual

    Table of Contents Preface, Notes, Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

    hibernate乐观锁和悲观锁学习

    <class name="org.hibernate.sample.TUser" table="t_user" dynamic-update="true" dynamic-insert="true" optimistic-lock="version"> …… </class> optimistic-lock 属性有如下可选取值: none:无乐观锁 ...

    springmybatis

    Create TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userName` varchar(50) DEFAULT NULL, `userAge` int(11) DEFAULT NULL, `userAddress` varchar(200) DEFAULT NULL, PRIMARY KEY (`id`) ) ...

    VereORM至简持久层微架构

    Object obj=session.findOne(User.class, "select * from user where id=1");//原生SQL if(obj!=null) { User user=(User)obj; System.out.println(user.getId()+" | "+user.getName()+" | "+user.getAge()+...

    Hungry Minds - Visual Basic.NET Visual Blueprint (VBL).pdf

    TABLE OF CONTENTS 013649-4 FM.F 12/3/01 9:08 AM Page viii 3)WORK WITH CONTROLS Using Buttons ..............................................................................................................

    thinkphp视图模型查询提示ERR: 1146:Table db.pr_order_view doesnt exist的解决方法

    本文实例讲述了thinkphp视图模型查询失败提示:ERR: 1146:Table ‘db.pr_order_view’ doesn’t exist解决办法。分享给大家供大家参考。具体方法如下: 一、问题描述: 想用thinkphp的视图模型进行关联查询,结果...

    AndroidSqlite数据库操作封装SQLiteUtils.zip

     @Table.Column(name="user_id",type=Column.TYPE_INTEGER,isPrimaryKey=true)  public Integer userId;  @Table.Column(name="user_name",type=Column.TYPE_STRING,isNull=false)  public String userName...

    Microsoft SharePoint 2010 Developer Reference

    9 Extending the User Interface . 265 Custom Actions 265 The CustomAction Element . 265 The CustomActionGroup Element 273 The HideCustomAction Element . 275 Server-Side Custom Actions 276 Ribbons . 279...

    jsp探针 ver0.1

    Class.forName("org.springframework.context.ApplicationContext"); supportSpring = true; } catch (ClassNotFoundException ex) { } try { Class.forName("org.loon.framework.Loon"); supportLoonframework = ...

    tkinter.pdf

    Describes the Tkinter widget set for constructing graphical user interfaces (GUIs) in the Python programming language. This publication is available in Web form1 and also as a PDF document2. Please ...

    XK在线考试系统源码XKOnLine.zip

    │ │ ListClass.aspx.cs │ │ ListSubject.aspx │ │ ListSubject.aspx.cs │ │ LoginOut.aspx │ │ LoginOut.aspx.cs │ │ QuestionDetails.aspx │ │ QuestionDetails.aspx.cs │ │ RegisterStudent.aspx ...

    IOS5 Programming Cookbook

    3. Constructing and Using Table Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 3.1 Instantiating a Table View 281 3.2 Assigning a Delegate to a Table View 284 ...

    Short Message peer to peer Protocol specification v3.4

    Table of Contents 1. Introduction.................................................................................................................8 1.1 SMPP Overview......................................

Global site tag (gtag.js) - Google Analytics