質問するログイン新規登録

質問編集履歴

2

修正

2019/08/04 12:16

投稿

pokerStars
pokerStars

スコア67

title CHANGED
File without changes
body CHANGED
@@ -31,7 +31,7 @@
31
31
  @RequestMapping(value = "/done", method = RequestMethod.POST)
32
32
  public String done(@RequestParam("id") long id) {
33
33
  Optional<Todo> item = this.repository.findById(id) ;
34
- item.setDone(true); __cannot resolve method__
34
+ item.setDone(true); //cannot resolve method
35
35
  this.repository.save(item);
36
36
  return "redirect:/?isDone=false";
37
37
  }
@@ -39,7 +39,7 @@
39
39
  @RequestMapping(value = "/restore", method = RequestMethod.POST)
40
40
  public String restore(@RequestParam("id") long id) {
41
41
  Optional<Todo> item = this.repository.findById(id);
42
- item.setDone(false); __cannot resolve method__
42
+ item.setDone(false); //cannot resolve method
43
43
  this.repository.save(item);
44
44
  return "redirect:/?isDone=true";
45
45
  }

1

修正

2019/08/04 12:16

投稿

pokerStars
pokerStars

スコア67

title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,4 @@
1
- https://blog.okazuki.jp/entry/2015/07/20/134739
1
+ [参考にした記事](https://blog.okazuki.jp/entry/2015/07/20/134739)
2
2
 
3
3
  こちらの記事を参考にTodoリストを作成していたところ、
4
4
  ```ここに言語を入力