spring boot hello world

This commit is contained in:
JeffLi1993
2017-02-06 17:49:34 +08:00
committed by liqiangqiang
parent 493e4addae
commit f34d54f45e

View File

@@ -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!";
}
}