Difference between revisions of "Spring Boot"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
http://projects.spring.io/spring-boot/ |
http://projects.spring.io/spring-boot/ |
||
+ | https://spring.io/guides/gs/rest-service/ |
||
<source lang="java"> |
<source lang="java"> |
Revision as of 12:39, 18 May 2016
http://projects.spring.io/spring-boot/
https://spring.io/guides/gs/rest-service/
package hello;
import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
import org.springframework.stereotype.*;
import org.springframework.web.bind.annotation.*;
@Controller
@EnableAutoConfiguration
public class SampleController {
@RequestMapping("/")
@ResponseBody
String home() {
return "Hello World!";
}
public static void main(String[] args) throws Exception {
SpringApplication.run(SampleController.class, args);
}
}