Skip to content

Commit 7fbfc8a

Browse files
committed
update method name 'findByName' to 'findById'
1 parent 4b95707 commit 7fbfc8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/makotojava/learn/springboot/web/CategoryRestService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public List<Category> findAll() {
2323
}
2424

2525
@RequestMapping("/FindById/{id}")
26-
public Category findByName(@PathVariable Long id) {
26+
public Category findById(@PathVariable Long id) {
2727
return getCategoryService().findById(id);
2828
}
2929

src/main/java/com/makotojava/learn/springboot/web/ItemRestService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public List<Item> findAllItems() {
2323
}
2424

2525
@RequestMapping("/FindById/{id}")
26-
public Item findByName(@PathVariable Long id) {
26+
public Item findById(@PathVariable Long id) {
2727
return getItemService().findById(id);
2828
}
2929

0 commit comments

Comments
 (0)