with this function: ``` @GetMapping(value = ["...
# spring
r
with this function:
Copy code
@GetMapping(value = ["/test"], produces = [MediaType.TEXT_PLAIN_VALUE])
    fun test(response: ServerHttpResponse) {
        val buf = response.bufferFactory().wrap("abc".toByteArray())
        response.writeWith(Mono.just(buf))
    }
i'm getting:
Copy code
2019-10-08 14:31:14.150 ERROR 13104 --- [or-http-epoll-2] a.w.r.e.AbstractErrorWebExceptionHandler : [eb11d944] 500 Server Error for HTTP GET "/test"

java.lang.IllegalStateException: Could not resolve view with name 'test'.
        at org.springframework.web.reactive.result.view.ViewResolutionResultHandler.lambda$resolveViews$3(ViewResolutionResultHandler.java:278) ~[spring-webflux-5.2.0.RELEASE.jar:5.2.0.RELEASE]
        Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
Error has been observed at the following site(s):
        |_ checkpoint ⇢ Handler com.example.demo.MyController#test(ServerHttpResponse) [DispatcherHandler]
        |_ checkpoint ⇢ HTTP GET "/test" [ExceptionHandlingWebHandler]