diff --git a/spring-boot-test/src/main/java/com/rogergit/demo/springboottest/controller/TestController.java b/spring-boot-test/src/main/java/com/rogergit/demo/springboottest/controller/TestController.java new file mode 100644 index 0000000..89f8831 --- /dev/null +++ b/spring-boot-test/src/main/java/com/rogergit/demo/springboottest/controller/TestController.java @@ -0,0 +1,20 @@ +package com.rogergit.demo.springboottest.controller; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * TestController + * + * @author noah + */ +@RestController +@RequestMapping("test") +public class TestController { + + @GetMapping(value = "hello") + public String helloWorld() { + return "Hello, World"; + } +}