mybatis插入数据,返回自增长的id 无 insert id=insert parametertype=spares usegeneratedkeys=true keyproperty=idinsert into spares(spares_id,spares_name,spares_type_id,spares_spec)values(#{id},#{name},#{typeid},#{spec})/insert sparesda
mybatis 插入数据,返回自增长的id insert into spares(spares_id,spares_name,spares_type_id,spares_spec) values(#{id},#{name},#{typeid},#{spec})
sparesdao.insert(spares); //插入spares.getid();//取得主键id