All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.yes.tools.generator.config.WebViewConfig Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy