mybatis注解版 添加数据并返回主键
@Options(useGeneratedKeys =true, keyProperty = "pid")
@Select("Insert into person(pid, pname, addr,gender, birth)" +
"values(#{pid}, #{pname}, #{addr},#{gender}, #{birth})")
public void insert(Person person);