Skip to content

关于mybatis plus中的BaseMapper<T>以及IService<T> 以及ServiceImpl<M extends <Basemapper>,T> 这几个类 #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
StickT opened this issue May 31, 2017 · 1 comment

Comments

@StickT
Copy link

StickT commented May 31, 2017

请问有哪位可以帮忙解释下框架里面的这几个类吗,为什么有了Basemapper这个类之后还要再写通用的Service呢,这不是重复了吗?求助各位大神,尤其是本框架的作者

@qmdx
Copy link
Member

qmdx commented May 31, 2017

BaseMapper 就是你说的通用的 mapper 层

ServiceImpl 通用的 service 层实现、通用是为了让 service 层只有自定义方法(当然你可以不用)。

以上的通用目的只有一个【 mapper xml serviceImpl 更加简洁 】 的考虑,让你只需关心自定义复杂方法

@qmdx qmdx closed this as completed May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants