We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ef3e1f commit 8ef434dCopy full SHA for 8ef434d
Spring_RestController_RestApi/todolist/src/main/todolist.hello/HelloController.java
@@ -5,10 +5,11 @@
5
it using @RestController directive*/
6
import org.springframework.web.bind.annotation.RequestMapping;
7
@RestController
8
+@RequestMapping("")
9
public class HelloController {
10
//To make the request I need to map the request/method to a function inside a Controller
- @RequestMapping("/hello")
11
+ @GetMapping("/hello")
12
public String SayHi(){
- return "Hello There 2526, go learn 26265 the best programming language";
13
+ return "Hello There 6627, go learn sql the best programming language";
14
}
15
0 commit comments