Spaces:
Sleeping
Sleeping
KevanSoon
commited on
Commit
·
52e8df6
1
Parent(s):
020c371
added a TestController
Browse files
src/main/java/com/cs102/attendance/TestController.java
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package com.cs102.attendance;
|
| 2 |
+
|
| 3 |
+
import org.springframework.web.bind.annotation.GetMapping;
|
| 4 |
+
import org.springframework.web.bind.annotation.RestController;
|
| 5 |
+
|
| 6 |
+
@RestController
|
| 7 |
+
public class TestController {
|
| 8 |
+
|
| 9 |
+
@GetMapping("/hello")
|
| 10 |
+
public String hello() {
|
| 11 |
+
return "Spring Boot is working!";
|
| 12 |
+
}
|
| 13 |
+
}
|