mybatis注解开发时返回id
写入数据库后把生成的id返回到了user对象里
mapper接口
@Insert("insert into l_user values(#{id},#{username},#{password},#{email},#{telephone},#{registertime},#{photo},#{state})")
@Options(useGeneratedKeys=true, keyProperty="id", keyColumn="id")
public Long insert(User user