We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71b8ce5 commit 6b5db26Copy full SHA for 6b5db26
src/main/java/org/example/RestApi.java
@@ -28,7 +28,7 @@ public Iterable<Item> getAll(){
28
@GetMapping(path = "/{id}")
29
public ResponseEntity<Item> getById(@PathVariable("id") Long id){
30
31
- Item item = repository.findById(id).orElse(null);
+ Item item = repository.findById(id).orElse(null) ;
32
33
if(item == null){
34
return ResponseEntity.notFound().build();
0 commit comments