Created
February 13, 2014 21:40
-
-
Save chbatey/8984404 to your computer and use it in GitHub Desktop.
Spring boot: Super simple example app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Controller | |
| public class ExampleWebAppController { | |
| @RequestMapping("/exampleendpoint") | |
| public @ResponseBody Payload exampleEndpoint(@RequestParam(value="input") String input) { | |
| return new Payload("Something really important: " + input); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment