<?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.how2java.mapper.CategoryMapper">
<select id="list" resultType="Category">
select * from category_
</select>

<delete id="delete" parameterType="int">
delete * from category_ where id = #{id}                  //问题!!!!!!!使用#{}传参
</delete>
</mapper>

posted on 2019-04-02 19:40  w123w  阅读(672)  评论(0编辑  收藏  举报