The main configuration class for a Spring WebFlux web application is achieved by this class:
@Configuration
@EnableWebFlux
@ComponentScan
public class SpringWebFluxConfig {
// ...
}
We have an empty class with just some very important annotations as shown in the preceding code. @EnableWebFlux makes the application reactive and makes it WebFlux.