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 8601ae1 commit 29cb249Copy full SHA for 29cb249
packages/java-mongo/src/main/java/com/example/javamongo/StudentController.java
@@ -31,4 +31,9 @@ public void deleteStudent(@PathVariable String id) {
31
public Optional<Student> getStudentById(@PathVariable String id) {
32
return studentRepository.findById(id);
33
}
34
+
35
+ @GetMapping("/a/{id}")
36
+ public Optional<Student> getStudentById(@PathVariable String id) {
37
+ return studentRepository.findById(id);
38
+ }
39
0 commit comments