Created
February 19, 2019 22:34
-
-
Save AlfredoCasado/5505a770a0a92f26643d9ddf0d39e940 to your computer and use it in GitHub Desktop.
This file contains 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
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