Created
July 12, 2014 22:49
-
-
Save contee213/250993ef70980b19dbcf to your computer and use it in GitHub Desktop.
Spring Boot Sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.contee.sample.hello; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.ResponseBody; | |
/** | |
* Created by contee on 2014/07/13. | |
*/ | |
@Controller | |
@EnableAutoConfiguration | |
public class SampleController { | |
@RequestMapping("/") | |
@ResponseBody | |
String hello() { | |
return "Hello World!"; | |
} | |
public static void main(String[] args) { | |
SpringApplication.run(SampleController.class, args); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment