From f34d54f45e7ebef57d252c3a904c08481ba87e7e Mon Sep 17 00:00:00 2001 From: JeffLi1993 Date: Mon, 6 Feb 2017 17:49:34 +0800 Subject: [PATCH] spring boot hello world --- .../springboot/web/HelloWorldController.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 springboot-helloworld/src/main/java/org/spring/springboot/web/HelloWorldController.java 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!"; + } +}