diff --git a/springboot-helloworld/src/main/java/org/spring/springboot/web/HelloWorldController.java b/springboot-helloworld/src/main/java/org/spring/springboot/web/HelloWorldController.java new file mode 100644 index 0000000..677eaaa --- /dev/null +++ b/springboot-helloworld/src/main/java/org/spring/springboot/web/HelloWorldController.java @@ -0,0 +1,18 @@ +package org.spring.springboot.web; + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * Spring Boot HelloWorld案例 + * + * Created by bysocket on 16/4/26. + */ +@RestController +public class HelloWorldController { + + @RequestMapping("/") + public String sayHello() { + return "Hello,World!"; + } +}