Skip to content

Instantly share code, notes, and snippets.

@yusuke
Created February 20, 2015 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yusuke/beec167b682c0b8127a2 to your computer and use it in GitHub Desktop.
Save yusuke/beec167b682c0b8127a2 to your computer and use it in GitHub Desktop.
package jrebeldemo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@EnableAutoConfiguration
@ComponentScan
public class App {
@RequestMapping(value = "/hello")
String hello() {
return "hello";
}
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