Class DmxFunWebFluxAutoConfiguration

java.lang.Object
dmx.fun.spring.boot.web.DmxFunWebFluxAutoConfiguration

@AutoConfiguration @ConditionalOnClass({org.springframework.web.reactive.function.server.ServerResponse.class,WebfluxProblem.class}) @NullMarked public class DmxFunWebFluxAutoConfiguration extends Object
Spring Boot autoconfiguration for fun-spring-webflux.

WebfluxFun/WebfluxProblem are static utilities, so there are no adapters to register. What this contributes is a ready-made default: a ThrowableHttpMapper bean that renders any failure as an RFC 7807 application/problem+json response, so reactive handlers can inject one (and pass it to WebfluxFun.fromTry(...)) instead of constructing it at each call site.

The status defaults to 500 and is configurable via dmx.fun.webflux.problem.status. The bean is guarded by @ConditionalOnMissingBean (declare your own ThrowableHttpMapper to override it) and can be disabled with dmx.fun.webflux.problem.enabled=false.

  • Constructor Details

    • DmxFunWebFluxAutoConfiguration

      public DmxFunWebFluxAutoConfiguration()
      Default constructor required for Spring Boot auto-configuration instantiation.