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