我总觉得是mapper.xml的问题!
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "
http://mybatis.org/dtd/mybatis-3-mapper.dtd
"><mapper namespace="com.tzyt.people.dao.ITwzwDao">
<select id="queryAll" resultType="com.tzyt.people.po.TWzw">
select * from t_wzw
</select>
<insert id="insert" parameterType="com.tzyt.people.po.TWzw">
insert into t_wzw(id,name,age,money) values(#{id},#{name},#{age},#{money})
</insert>
<update id="update" parameterType="com.tzyt.people.po.TWzw">
update t_wzw set id=#{id},name=#{name},age=#{age} ,money=#{money} where id=#{id}
</update>
<delete id="delete" parameterType="String">
delete from t_wzw where id=#{id}
</delete>
<select id="queryById" parameterType="String" resultType="com.tzyt.people.po.TWzw">
select * from t_wzw where id=#{id}
</select>
</mapper>