spring-boot-starter-webflux
(Spring Boot v2.0.0.M2)已被配置爲像在spring-boot-starter-web
中那樣爲靜態文件夾中的靜態內容提供資源。但它不會轉發到index.html。在Spring MVC有可能配置是這樣的:Spring Webflux,如何轉發到index.html以提供靜態內容
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/").setViewName("forward:/index.html");
}
如何做到在春季Webflux?