在StudentMapper接口中添加方法findbyId返回值User对象和findAllList集合findBbySname返回集合可能有重名
public interface StudentMapper {
User findById(int id);
List<User> findAll();
List<User> findBySname(String sname);
//其他方法...
}
原文地址: https://www.cveoy.top/t/topic/hdGV 著作权归作者所有。请勿转载和采集!