Skip to content
Advertisement

Tag: mono

Spring boot WebFlux : How to write Mono.map() return value?

Exception is : Required type: Mono Provided:Mono no instance(s) of type variable(s) T exist so that Mono conforms to UserDto inference variable R has incompatible bounds: equality constraints: UserDto lower bounds: Mono How to write function getUserInfoByUserId ? Answer Assuming that you are always returning Mono from your repository methods, you can do this I would recommend you to start

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());

What are the main benefits of using Mono over Java? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

Advertisement