发表于: 2018-01-30 23:29:39
1 439
今天依然是调代码
报错: java: 缺少方法主体, 或声明抽象
public interface StudentMapper {
public int add(Student student);
public void delete(int id);
public Student get(int id);
public int update(Student student);
public List<Student> list();
public List<Student> list(Page page);
public int total();
}
改动了StudentMapper里面的public static List<Student> list(Page page);删掉了static这句话。
运行,StudentServiceImpl继续报错
@Service
public class StudentServiceImpl implements StudentService {
@Autowired
StudentMapper studentMapper;
//StudentMapper studentMapper = new StudentMapper();
public List<Student> list() {
return studentMapper.list();
}
@Override
public List<Student> list(Page page) {
return studentMapper.list(page);
}
@Override
public int total() {
return studentMapper.total();
return StudentMapper.list(page);改为studentMapper,报错解决
运行测试类成功:
20000000
Process finished with exit code 0
然后连接tomcat,运行。整体架构如下
运行成功。
明天的计划:弄我们的报名系统表让其在SSM里跑通
遇到的问题:1.为什么切换页面非常慢
2.为什么我四个字段,id,name,qq,major只能显示两个
3.编辑页面也没出来。
今天的收获:改动了一些东西,换了类,也跑通了
java任务二开始时间:2018.01.25
预计demo时间:2018.02.12
可能有延期风险,原因是:基础比较差,
禅道链接地址:http://task.ptteng.com/zentao/project-task-501.html
评论