fix: 修复swagger-ui不能生成https的url
This commit is contained in:
parent
ec70c13154
commit
03b2ee7537
|
@ -2,13 +2,15 @@ package io.metersphere.config;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
|
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
|
||||||
import io.swagger.v3.oas.annotations.info.Info;
|
import io.swagger.v3.oas.annotations.info.Info;
|
||||||
|
import io.swagger.v3.oas.annotations.servers.Server;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
@OpenAPIDefinition(
|
@OpenAPIDefinition(
|
||||||
info = @Info(
|
info = @Info(
|
||||||
title = "MeterSphere",
|
title = "MeterSphere",
|
||||||
version = "1.0"
|
version = "1.0"
|
||||||
)
|
),
|
||||||
|
servers = @Server(url = "/")
|
||||||
)
|
)
|
||||||
@Configuration
|
@Configuration
|
||||||
public class OpenApiConfig {
|
public class OpenApiConfig {
|
||||||
|
|
Loading…
Reference in New Issue