org.yes.tools.generator.config.WebViewConfig Maven / Gradle / Ivy
package org.yes.tools.generator.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.config.ResourceHandlerRegistry;
import org.springframework.web.reactive.config.WebFluxConfigurer;
/**
* @author Co.
* @name WebConfig
* @date 2023/4/10 16:53
*/
@Configuration
public class WebViewConfig implements WebFluxConfigurer {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/generator/**").addResourceLocations("classpath:/view/").resourceChain(false);
}
}