Skip to content

Instantly share code, notes, and snippets.

@akhilbojedla
Last active October 11, 2019 22:41
Show Gist options
  • Save akhilbojedla/6199eb127c485d442bd53e0660d2b434 to your computer and use it in GitHub Desktop.
Save akhilbojedla/6199eb127c485d442bd53e0660d2b434 to your computer and use it in GitHub Desktop.
Exclude defaule error handler for Spring WebFlux
package com.bytecodehq;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.reactive.error.ErrorWebFluxAutoConfiguration;
@SpringBootApplication(exclude = ErrorWebFluxAutoConfiguration.class)
public class ErrorHandlingApplication {
public static void main(String[] args) {
SpringApplication.run(ErrorHandlingApplication.class, args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment