Change .flatMap(cr -> cr.bodyToFlux(Event.class)) to .flatMapMany(clientResponse -> clientResponse.bodyToFlux(Event.class)) and add @NoArgsConstructor in Event.class
Can someone explain line 10 @9:32 I am receving an error: new SpringApplication(ReactiveClientApplication.class, args) The constructor SpringApplicationBuilder(Class, String[]) is undefined Also line 27 @12:47 Error: Syntax error on token ":", invalid AssignmentOperator Am I missing something?
Code at 11:50 stopped compiling, I use the following now: webClient.get() .uri("/stream") .accept(MediaType.TEXT_EVENT_STREAM) .exchange() .flatMapMany(clientResponse -> clientResponse.bodyToFlux(Movie.class)) .subscribe(System.out::println);
.flatMap(cr -> cr.bodyToFlux(Event.class)) - why your compiler doesn't complain "cannot convert Flux to Mono"?? You changed again the API specs?
Change .flatMap(cr -> cr.bodyToFlux(Event.class)) to .flatMapMany(clientResponse -> clientResponse.bodyToFlux(Event.class)) and add @NoArgsConstructor in Event.class
@@srinivasuludagda5736 My Response is giving me a header
content-type 'text/plain;charset=UTF-8' and it is not able to convert to my class
Interesting to see Spring people also using Intellij intead of STS :)
Can someone explain line 10 @9:32
I am receving an error: new SpringApplication(ReactiveClientApplication.class, args)
The constructor SpringApplicationBuilder(Class, String[]) is undefined
Also line 27 @12:47
Error: Syntax error on token ":", invalid AssignmentOperator
Am I missing something?
remove the args paramater in static void main method
just awesome
That Rocked!!
Awesome!!!~
AllArgsConstructor error with Final in Event class
Just installed lombok plugin Ok
Code at 11:50 stopped compiling, I use the following now:
webClient.get()
.uri("/stream")
.accept(MediaType.TEXT_EVENT_STREAM)
.exchange()
.flatMapMany(clientResponse -> clientResponse.bodyToFlux(Movie.class))
.subscribe(System.out::println);
Interesting ~
6:40 OK wtf happened here?
just like netty
Zip "waits" until the next emission, and it returns a tuple
Notice me senpai Josh!!, lol
Why maven?
It's better supported for server-side stuff, no?