Swagger改用Starter
This commit is contained in:
@@ -2,6 +2,8 @@ package com.macro.mall.search.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(false)
|
||||
.build();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public BeanPostProcessor springfoxHandlerProviderBeanPostProcessor() {
|
||||
return generateBeanPostProcessor();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,9 @@ spring:
|
||||
name: mall-search
|
||||
profiles:
|
||||
active: dev #默认为开发环境
|
||||
mvc:
|
||||
pathmatch:
|
||||
matching-strategy: ant_path_matcher
|
||||
|
||||
server:
|
||||
port: 8081
|
||||
|
||||
Reference in New Issue
Block a user