Skip to content

Instantly share code, notes, and snippets.

@AlfredoCasado
Created February 19, 2019 22:34
Show Gist options
  • Save AlfredoCasado/5505a770a0a92f26643d9ddf0d39e940 to your computer and use it in GitHub Desktop.
Save AlfredoCasado/5505a770a0a92f26643d9ddf0d39e940 to your computer and use it in GitHub Desktop.
package boothello;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloController {
@RequestMapping("/")
public CustomResponse index() {
return new CustomResponse();
}
}
class CustomResponse {
public String name = "hello";
public String surname = "world";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment