Swagger改用Starter
This commit is contained in:
@@ -2,6 +2,8 @@ package com.macro.mall.portal.config;
|
||||
|
||||
import com.macro.mall.common.config.BaseSwaggerConfig;
|
||||
import com.macro.mall.common.domain.SwaggerProperties;
|
||||
import org.springframework.beans.factory.config.BeanPostProcessor;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||
|
||||
@@ -24,4 +26,9 @@ public class SwaggerConfig extends BaseSwaggerConfig {
|
||||
.enableSecurity(true)
|
||||
.build();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public BeanPostProcessor springfoxHandlerProviderBeanPostProcessor() {
|
||||
return generateBeanPostProcessor();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,9 @@ spring:
|
||||
name: mall-portal
|
||||
profiles:
|
||||
active: dev #默认为开发环境
|
||||
mvc:
|
||||
pathmatch:
|
||||
matching-strategy: ant_path_matcher
|
||||
|
||||
mybatis:
|
||||
mapper-locations:
|
||||
@@ -18,15 +21,15 @@ jwt:
|
||||
secure:
|
||||
ignored:
|
||||
urls: #安全路径白名单
|
||||
- /swagger-ui.html
|
||||
- /swagger-ui/
|
||||
- /swagger-resources/**
|
||||
- /swagger/**
|
||||
- /**/v2/api-docs
|
||||
- /**/*.html
|
||||
- /**/*.js
|
||||
- /**/*.css
|
||||
- /**/*.png
|
||||
- /**/*.ico
|
||||
- /webjars/springfox-swagger-ui/**
|
||||
- /**/*.map
|
||||
- /favicon.ico
|
||||
- /druid/**
|
||||
- /actuator/**
|
||||
- /sso/**
|
||||
|
||||
Reference in New Issue
Block a user