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 4b95707 commit 7fbfc8aCopy full SHA for 7fbfc8a
src/main/java/com/makotojava/learn/springboot/web/CategoryRestService.java
@@ -23,7 +23,7 @@ public List<Category> findAll() {
23
}
24
25
@RequestMapping("/FindById/{id}")
26
- public Category findByName(@PathVariable Long id) {
+ public Category findById(@PathVariable Long id) {
27
return getCategoryService().findById(id);
28
29
src/main/java/com/makotojava/learn/springboot/web/ItemRestService.java
@@ -23,7 +23,7 @@ public List<Item> findAllItems() {
- public Item findByName(@PathVariable Long id) {
+ public Item findById(@PathVariable Long id) {
return getItemService().findById(id);
0 commit comments