DAY15 Mybatis 中map的使用,sqlsession,数据库和类属性的映射,日志工厂log4j
publicinterfaceUserDao{ListgetUserList();UsergetUserById(inti);intaddUser(Mapuser);}select*fromuser;select*from`user`whereid=#{id};insertinto`user`(id,name,pwd)values(#{userid},#{username},#{userpwd})