Last active
March 2, 2016 11:48
-
-
Save brunokrebs/9d35025db611b48c70ed to your computer and use it in GitHub Desktop.
This file contains 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 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; | |
@Controller | |
@EnableAutoConfiguration | |
public class IndexController { | |
@RequestMapping("/") | |
@ResponseBody | |
String home() { | |
return "Hello world!"; | |
} | |
public static void main(String[] args) throws Exception { | |
SpringApplication.run(IndexController.class, args); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment