美文网首页
MyBatisPlus使用教程

MyBatisPlus使用教程

作者: 挣扎在黑暗中的码畜 | 来源:发表于2019-06-28 18:04 被阅读0次

/**

* Mapper接口:

*  1.基于mybatis: 在Mapper接口中编写CRUD相关的方法,提供Mapper接口所对应的SQL映射文件 以及方法对应的sql语句。

*  2.基于MP:让XxxMapper接口继承BaseMapper接口即可。

*      BaseMapper<T>:泛型指定的就是当前Mapper接口所操作的实体类类型

*/


1.插入操作:

@Autowiredprivate 

SystemConfigMappermapper;

int a =mapper.insert(systemConfig);

相关文章

网友评论

      本文标题:MyBatisPlus使用教程

      本文链接:https://www.haomeiwen.com/subject/urjefctx.html