feat: Spring的ServiceImpl#getMapper返回约束泛型类型

This commit is contained in:
Aliothmoon 2024-10-25 01:52:30 +08:00
parent 4bcfaf6e75
commit c56a3d9740

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;
} }