Merge pull request #423 from Aliothmoon/feat/geni

feat: 为Spring的ServiceImpl#getMapper返回具体的约束泛型类型
This commit is contained in:
Michael Yang 2024-10-25 09:06:11 +08:00 committed by GitHub
commit 3938f8b809
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,7 @@ public class ServiceImpl<M extends BaseMapper<T>, T> implements IService<T> {
protected M mapper; protected M mapper;
@Override @Override
public BaseMapper<T> getMapper() { public M getMapper() {
return mapper; return mapper;
} }