Skip to content
Advertisement

Tag: reactive

Auditing (@CreatedDate) does not work for WebFlux Spring Boot with reactive MongoDB

Does WebFlux Spring Boot with reactive MongoDB supports Auditing? I tried to use @CreatedDate and it did not work for me. Here is my configuration: Here is my document class Here is Message repository When I save message messageRepository.save(message) I always have createdDate=null Do I miss something or Auditing does not work with reactive MongoDB? Answer I resolved the issue

How to initialize an empty Mono Class object in reactive programming?

I am learning reactive and I wanted to know how to initialize a Mono object, like in Java when:User usr=new User(). How to create a Mono object of this similar class? Answer There are different ways you can create an object. Checkout this link for better understanding https://projectreactor.io/docs/core/release/api/reactor/core/publisher/Mono.html Here you can just use the Mono.just(new User());

Reactive WebClient GET Request with text/html response

Currently I’m having an issue with new Spring 5 WebClient and I need some help to sort it out. The issue is: I request some url that returns json response with content type text/html;charset=utf-8. But unfortunately I’m still getting an exception: org.springframework.web.reactive.function.UnsupportedMediaTypeException: Content type ‘text/html;charset=utf-8’ not supported. So I can’t convert response to DTO. For request I use following code:

RxJava Live Reactive Queue (with on off switch)

Working on an android app in kotlin. I need to set up a system to be able to do work from a live queue (and observe the results of the work in a stream). But I also have to be able to toggle the “queue processing” depending on a couple external factors (which also come in as streams) like networkIsAvailable

Advertisement