Created
December 7, 2017 21:23
-
-
Save olbpetersson/eb5732609b128aea0d44038e40dbb4c7 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
@Configuration | |
public class WebConfiguration { | |
@Bean | |
RouterFunction<?> routes(HelloWorldService helloWorldService) { | |
// request.pathVariable holds path-variables | |
return RouterFunctions.route( | |
GET("func-hello"), | |
request -> ServerResponse.ok().body(helloWorldService.getHelloWorld(), String.class)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment