摘要: 1、java持久层使用mybatis,sql报错:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Improper inline pa... 阅读全文
posted @ 2014-08-13 17:25 菜枚 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 需求:使用MyBatis往MySQL数据库中插入一条记录后,需要返回该条记录的自增主键值。方法:在mapper中指定keyProperty属性,示例如下:Xml代码 insertintouser(userName,password,comment)values(#{userName},#{passw... 阅读全文
posted @ 2014-08-13 17:02 菜枚 阅读(263) 评论(0) 推荐(0) 编辑