Guest User

Untitled

a guest
Dec 15th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. @Bean
  2. public RouterFunction<ServerResponse> routes() {
  3. return route()
  4. .path("/student", builder -> builder
  5. .GET("/output/{id}", accept(APPLICATION_JSON), req -> ok().contentType(MediaType.APPLICATION_JSON)
  6. .body(Mono.justOrEmpty(studentService.getPayload(req.pathVariable("id"))), String.class)))
  7. .build();
  8. }
  9.  
  10. There was an unexpected error (type=Internal Server Error, status=500).
  11. Not allowed to capture 'id' twice in the same pattern
Add Comment
Please, Sign In to add comment