<insert id="addUser",parameterType="map">
insert into mybatis.user(id,pwd) values(#{userId},#{passWord});
</insert>
//Map
int addUser2(Map<String,object> map);
@Test标签:Map,map,万能,userId,sqlsession,3.3,addUser2 From: https://www.cnblogs.com/muzhaodi/p/17815578.html
public void addUser2(){
Sqlsession sqlsession=MybatisUtils.getSqlsession();
UserMapper mapper = sqlsession.getMapper(UserMapper.class);
Map<String,object> map = new HashMap<String,object>();
map.put("userId",5);
map.put("passWord","223333");
mapper.addUser2(map);
sqlsession.close();
}