Skip to content

Instantly share code, notes, and snippets.

@brunokrebs
Last active March 2, 2016 11:48
Show Gist options
  • Save brunokrebs/9d35025db611b48c70ed to your computer and use it in GitHub Desktop.
Save brunokrebs/9d35025db611b48c70ed to your computer and use it in GitHub Desktop.
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