Skip to content

Instantly share code, notes, and snippets.

@jkutner
Last active December 7, 2017 01:28
Show Gist options
  • Save jkutner/a64d8d47f9e8a06f5a4abf229a5b1769 to your computer and use it in GitHub Desktop.
Save jkutner/a64d8d47f9e8a06f5a4abf229a5b1769 to your computer and use it in GitHub Desktop.
package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.*;
import org.springframework.stereotype.*;
@Controller
@SpringBootApplication
public class DemoApplication {
@RequestMapping("/")
@ResponseBody
String home() {
return "Hello from Heroku";
}
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment