springboot如何使用mybatis
2020-02-24
一、Mapper接口@MapperpublicinterfaceApiMapper{//#{}有单引号,${}无单引号@Insert("insertintotablel(id,name)va
一、Mapper接口@MapperpublicinterfaceApiMapper{//#{}有单引号,${}无单引号@Insert("insertintotablel(id,name)va
一、在mapper包下创建接口importcom.bean.Department;importorg.apache.ibatis.annotations.*;publicinterfaceDepart