Created
March 27, 2019 01:47
-
-
Save klaud81/154fb65b8fe5c604dd588b15ff1688c5 to your computer and use it in GitHub Desktop.
spring-writer-rest
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
@RestController | |
public class WelcomeController { | |
private WelcomeService service = new WelcomeService(); | |
@RequestMapping("/welcome") | |
public String welcome() { | |
return service.retrieveWelcomeMessage(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment