Migrate org.springframework.web.reactive.HandlerResult.setExceptionHandler method

MSAL

org.springframework.web.reactive.HandlerResult.setExceptionHandler(Function<Throwable, Mono<HandlerResult>>) was deprecated, in favor of setExceptionHandler(DispatchExceptionHandler).

org.openrewrite.java.spring.framework.MigrateHandlerResultSetExceptionHandlerMethod
mod run . --recipe=org.openrewrite.java.spring.framework.MigrateHandlerResultSetExceptionHandlerMethod

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.