如何从发布商响应 Micronaut 中获取值

问题描述

我正在使用 Micronaut,我需要从像 Publisher> 这样的 doFilter 获取响应,但是在单元测试中,我无法在流中获取值响应。有人可以帮我吗?

The image show the answer of the request

解决方法

您必须.subscribe() 到发布者才能获取发出的值。确保将您的 Reactive 101 安装到位! ?