Swagger改用Starter

This commit is contained in:
macro
2022-06-25 15:40:33 +08:00
parent 4fc1755441
commit 2f7b30b1df
9 changed files with 93 additions and 17 deletions

View File

@@ -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();
}
}

View File

@@ -3,6 +3,9 @@ spring:
name: mall-search
profiles:
active: dev #默认为开发环境
mvc:
pathmatch:
matching-strategy: ant_path_matcher
server:
port: 8081