Skip to content

Instantly share code, notes, and snippets.

@making
Created July 30, 2014 15:34
Show Gist options
  • Save making/9087095878a06b9140b2 to your computer and use it in GitHub Desktop.
Save making/9087095878a06b9140b2 to your computer and use it in GitHub Desktop.
package com.example;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@EnableAutoConfiguration
public class App {
@RequestMapping("/")
String home() {
return "Hello World!";
}
public static void main(String[] args) {
SpringApplication.run(App.class, args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment