![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java基本框架
主要Spring,SpringMVC,Mybatis,Struts,Hibernate相关介绍和剖析
俊逸-超凡
这个作者很懒,什么都没留下…
展开
-
mybatis bcType类型和Java类型的对应关系
mybatis中 jdbcType 时间类型 <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/> 当 jdbcType = TIMESTAMP , 年月日+ 时分秒 例: 2019-02-28 09:56:11 <result column="create_time" pro...原创 2019-02-28 10:47:19 · 579 阅读 · 0 评论 -
Mybatis中添加记录成功以后,返回主键id值
使用MyBatis往MySQL数据库中插入一条记录后,需要返回该条记录的自增主键值。 方法:在mapper中指定设置useGeneratedKeys=“true”,keyProperty属性为主键属性 <insert id="insertAndGetId" useGeneratedKeys="true" keyProperty="userId" parameterType="com.chen...原创 2019-01-11 17:31:34 · 2671 阅读 · 0 评论