fix:fix swagger not working bug.

pull/1225/head
Haotian Zhang 2 years ago committed by skyehtzhang
parent a641589ff0
commit 085f3d12a0

@ -138,6 +138,11 @@ public class MockedConfigKVFile implements ConfigKVFile {
return false;
}
@Override
public String getMd5() {
return null;
}
@Override
public void addChangeListener(ConfigFileChangeListener configFileChangeListener) {

@ -20,6 +20,7 @@ package com.tencent.cloud.polaris.config.condition;
import java.io.IOException;
import java.net.ServerSocket;
import java.util.Objects;
import com.tencent.cloud.polaris.config.PolarisConfigAutoConfiguration;
import com.tencent.cloud.polaris.config.PolarisConfigBootstrapAutoConfiguration;
@ -67,7 +68,9 @@ public class ConditionalOnReflectRefreshTypeTest {
@AfterAll
static void afterAll() throws IOException {
serverSocket.close();
if (Objects.nonNull(serverSocket)) {
serverSocket.close();
}
}
@Test

@ -22,6 +22,7 @@ import java.io.IOException;
import java.lang.reflect.Method;
import java.net.ServerSocket;
import java.util.Collection;
import java.util.Objects;
import java.util.Optional;
import com.tencent.cloud.polaris.config.PolarisConfigBootstrapAutoConfiguration;
@ -71,7 +72,9 @@ public class SpringValueProcessorTest {
@AfterAll
static void afterAll() throws IOException {
serverSocket.close();
if (Objects.nonNull(serverSocket)) {
serverSocket.close();
}
}
@Test

@ -244,7 +244,6 @@
<version>${springdoc.version}</version>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-webflux-ui</artifactId>

@ -14,7 +14,7 @@ spring:
contract:
exposure: true
report:
enabled: false
enabled: true
stat:
enabled: true
port: 28083

@ -14,7 +14,7 @@ spring:
contract:
exposure: true
report:
enabled: false
enabled: true
stat:
enabled: true
port: 28084

@ -17,7 +17,7 @@ spring:
contract:
exposure: true
report:
enabled: false
enabled: true
circuitbreaker:
enabled: true
stat:

@ -21,7 +21,7 @@ spring:
contract:
exposure: true
report:
enabled: false
enabled: true
stat:
enabled: true
port: 28081

Loading…
Cancel
Save