Skip to content

Instantly share code, notes, and snippets.

@jbruinink
Created March 23, 2017 20:58
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 jbruinink/232d20afbe5afeb7a2995dfc88e38192 to your computer and use it in GitHub Desktop.
Save jbruinink/232d20afbe5afeb7a2995dfc88e38192 to your computer and use it in GitHub Desktop.
Hello World Controller
package com.jdriven.ng2boot;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloController {
@RequestMapping(value ="/test")
public String helloWorld() {
return "Hello World!";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment