Mybaits-Plus不仅为我们进行了Mapper的方法封装,也为我们进行了Service的方法封装
Mybatis-Plus为我们封装的方法可以在IService接口中找到
1. IService接口实现关系
2. IService中的方法
进入IService接口类我们可以看到MyBatis-Plus为我们封装的各种方法
ServiceImpl对IService接口中的方法进行实现
IService中的方法为了和mapper中的方法进行区分避免混淆,Service方法名进行了响应的修改
mapper | service | |
---|---|---|
增 | insert | save |
删 | delete | remove |
改 | update | update |
查 | select | list/get |