发表于: 2018-04-08 23:34:17
1 606
今天一言难尽,上午装了一上午的系统,下午处理点私事,晚上又把mysql,mawen,java,idea,navait,装了一遍。
最后才有点时间把项目复习一遍
遇见的第一个问题是,可以往数据库里写入数据,但是页面无法展示,经过检查之后,报错说什么溢出。
于是我把boolean值改成了int。再写入,成功。更改的布尔值。增加的LONG改为int。我知道应该用Long,但是跑不通,今天没时间了,明天再说。
public void deleteByPrimaryKey(Long id);
Student selectByPrimaryKey(Long id);
int insert (Student student);
public int updateByPrimaryKey(Student student);
List<Student> list();
Student selectById(Long id);
二。然后就是删除的报错,点击之后,总是不动,页面也不跳转,也灭有效果,看见id下面曲线,苦思冥想,说是没有方法
后来灵光一闪,加了@PathVariable(“id”)
@RequestMapping(value = "student/{id}", method = RequestMethod.DELETE)
public String delStudent(@PathVariable("id") Long id) {
studentService.deleteByPrimaryKey(id);
return "redirect:/student/list";
}
别的没来得及。明天手写一遍,准备提交
明天的计划:提交任务二
遇到的问题:暂无
今天的收获:增加了一点前所未有的人生经验
java任务二开始时间:2018.01.25
预计demo时间:2018.02.12
可能有延期风险,原因是:json看不懂,控制器的逻辑看不懂,所以又回看了java语法
禅道链接地址:http://task.ptteng.com/zentao/project-task-501.html
评论