1
0

fix: 修改swagger只在开发环境中启用,在生产幻境中关闭

Dieser Commit ist enthalten in:
weihongyang 2022-06-21 14:47:27 +08:00
Ursprung 0218a7548a
Commit 111473f057

Datei anzeigen

@ -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 {
/**