daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Dec 15th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand