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 a666c97 commit d9216a5Copy full SHA for d9216a5
src/main/java/hexlet/code/controller/WelcomeController.java
@@ -1,15 +1,18 @@
1
package hexlet.code.controller;
2
3
4
+import org.springframework.http.HttpStatus;
5
import org.springframework.web.bind.annotation.GetMapping;
6
import org.springframework.web.bind.annotation.RequestMapping;
7
+import org.springframework.web.bind.annotation.ResponseStatus;
8
import org.springframework.web.bind.annotation.RestController;
9
10
@RestController
11
@RequestMapping("/welcome")
12
public class WelcomeController {
13
14
@GetMapping
15
+ @ResponseStatus(HttpStatus.OK)
16
String welcome() {
17
return "Welcome to Spring";
18
}
0 commit comments