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

com.magichand.grass.common.swagger.config.WebFluxSwaggerConfiguration Maven / Gradle / Ivy

The newest version!
package com.magichand.grass.common.swagger.config;

import org.springframework.web.reactive.config.ResourceHandlerRegistry;
import org.springframework.web.reactive.config.WebFluxConfigurer;

/**
 * @author lengleng
 * @date 2020/10/2
 * 

* webflux 网关 swagger 资源路径配置 */ public class WebFluxSwaggerConfiguration implements WebFluxConfigurer { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/swagger-ui/**") .addResourceLocations("classpath:/META-INF/resources/webjars/springfox-swagger-ui/") .resourceChain(false); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy