Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Bump to Spring Boot 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlodge committed Jul 16, 2020
1 parent f676ca1 commit 16b28bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.4.RELEASE</version>
<version>2.0.4.RELEASE</version>
</parent>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void destroy(Item item) {

@Override
public Item findOne(String id) {
return itemRepository.findOne(id);
return itemRepository.findById(id).orElse(null);
}
};
}
Expand Down

0 comments on commit 16b28bc

Please sign in to comment.