package com.qianwen.core.swagger;
|
|
import com.qianwen.core.launch.props.BladePropertySource;
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
import org.springframework.context.annotation.Configuration;
|
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
@EnableConfigurationProperties({SwaggerProperties.class})
|
@Configuration(proxyBeanMethods = false)
|
@BladePropertySource("classpath:/blade-swagger.yml")
|
/* loaded from: blade-starter-swagger-9.3.0.0-SNAPSHOT.jar:org/springblade/core/swagger/SwaggerWebConfiguration.class */
|
public class SwaggerWebConfiguration implements WebMvcConfigurer {
|
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
registry.addResourceHandler(new String[]{"doc.html"}).addResourceLocations(new String[]{"classpath:/META-INF/resources/"});
|
registry.addResourceHandler(new String[]{"/webjars/**"}).addResourceLocations(new String[]{"classpath:/META-INF/resources/webjars/"});
|
}
|
}
|