MyBatis-Plus 通用IService的使用
MybatisPlus除了通用的Mapper,还有通用的Servcie层,这也减少了相对应的代码工作量,把通用的接口提取到公共。其实按照MybatisPlus的这种思想,可以自己也实现一些通用的Controller。
一、只有通用的Mapper
下面三个类是我们最开始使用mybatisPlus写法,这样只能通过SysMenuMapper 调用一些通用的方法。
SysMenuMapper
package com.komorebi.mapper;
import com.komorebi.entity.Sys
原创
2021-11-23 21:53:17 ·
1621 阅读 ·
0 评论