Can we use both Web MVC and WebFlux in the same application?

Technology CommunityCategory: SpringCan we use both Web MVC and WebFlux in the same application?
VietMX Staff asked 3 years ago

As of now, Spring Boot will only allow either Spring MVC or Spring WebFlux, as Spring Boot tries to auto-configure the context depending on the dependencies that exist in its classpath.

Also, Spring MVC cannot run on Netty. Moreover, MVC is a blocking paradigm and WebFlux is a non-blocking style, therefore we shouldn’t be mixing both together, as they serve different purposes.