MYBAITS5–更新 删除 发表于 2017-03-03 分类于 Java 1234567891011<update id=“updateAuthor”>update Author setusername = #{username},password = #{password},email = #{email},bio = #{bio}where id = #{id}</update><delete id=“deleteAuthor”>delete from Author where id = #{id}</delete> 说明:flushCache=”true”为更新二级缓存,timeout=“20”超时连接 12345678910111213<updateid=“updateAuthor”parameterType=“domain.blog.Author”flushCache=”true”statementType=“PREPARED”timeout=“20”><deleteid=“deleteAuthor”parameterType=“domain.blog.Author”flushCache=”true”statementType=“PREPARED”timeout=“20”>