摘要: select 返回 List <!-- public List<Employee> getEmpByLastNameLike(String lastName);--> <!-- resultType:如果返回的是一个集合,要写集合中元素的类型--> <select id="getEmpByLastN 阅读全文
posted @ 2021-10-02 19:14 flypiggg 阅读(47) 评论(0) 推荐(0)
摘要: 参数处理 单个参数 mybatis 不会做特殊处理 #{参数名}:取出参数值 public Employee getEmpById(Integer id); <select id="selectEmp" resultType="com.atguigu.mybatis.bean.Employee"> 阅读全文
posted @ 2021-10-02 19:14 flypiggg 阅读(68) 评论(0) 推荐(0)