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
Tag: reactive
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:
How to serve files/PDF files the reactive way in spring
I have the following endpoint code to serve PDF files. How can I convert above into a reactive type Flux/Mono and DataBuffer. I have check DataBufferUtils but It doesn’t seem to offer what I needed. I didn’t find any example either. Answer The easiest way to achieve that would be with a Resource. Note that DataBufferUtils has some useful methods
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