mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
feat: support disable swagger-ui by config #203
This commit is contained in:
parent
e97bdc71c7
commit
75d922d4a9
@ -2,6 +2,7 @@ package com.github.kfcfans.powerjob.server.common.config;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.info.BuildProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
@ -22,6 +23,7 @@ import static springfox.documentation.builders.PathSelectors.any;
|
||||
*/
|
||||
@Configuration
|
||||
@EnableSwagger2
|
||||
@ConditionalOnProperty(name = "oms.swagger.enable", havingValue = "true")
|
||||
public class SwaggerConfig {
|
||||
|
||||
private final BuildProperties buildProperties;
|
||||
|
Loading…
x
Reference in New Issue
Block a user