fix: 修改swagger只在开发环境中启用,在生产幻境中关闭
This commit is contained in:
부모
0218a7548a
커밋
111473f057
@ -5,6 +5,7 @@ import com.google.common.collect.Lists;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Profile;
|
||||
import springfox.documentation.builders.ApiInfoBuilder;
|
||||
import springfox.documentation.builders.PathSelectors;
|
||||
import springfox.documentation.builders.RequestHandlerSelectors;
|
||||
@ -26,6 +27,7 @@ import static com.google.common.collect.Lists.newArrayList;
|
||||
*/
|
||||
@Configuration
|
||||
@EnableOpenApi
|
||||
@Profile("dev")
|
||||
public class SwaggerConfig {
|
||||
|
||||
/**
|
||||
|
불러오는 중...
Reference in New Issue
Block a user