We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a14e880 + 5dfb419 commit 73998fcCopy full SHA for 73998fc
1 file changed
src/Servers/SpringBootServer/src/main/java/server/Application.java
@@ -2,7 +2,8 @@
2
3
import org.springframework.boot.SpringApplication;
4
import org.springframework.boot.autoconfigure.SpringBootApplication;
5
-import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
6
+import org.springframework.web.bind.annotation.RequestMethod;
7
import org.springframework.web.bind.annotation.RestController;
8
9
@SpringBootApplication
@@ -13,7 +14,7 @@ public static void main(String[] args) {
13
14
SpringApplication.run(Application.class, args);
15
}
16
- @GetMapping("/**")
17
+ @RequestMapping(value = "/", method = {RequestMethod.GET, RequestMethod.POST})
18
public String index() {
19
return "OK";
20
0 commit comments