Skip to content

Commit

Permalink
fix:fix swagger not working bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyeBeFreeman authored and skyehtzhang committed Jan 20, 2024
1 parent a641589 commit 085f3d1
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ public boolean hasContent() {
return false;
}

@Override
public String getMd5() {
return null;
}

@Override
public void addChangeListener(ConfigFileChangeListener configFileChangeListener) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

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;
Expand Down Expand Up @@ -67,7 +68,9 @@ static void beforeAll() {

@AfterAll
static void afterAll() throws IOException {
serverSocket.close();
if (Objects.nonNull(serverSocket)) {
serverSocket.close();
}
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
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;
Expand Down Expand Up @@ -71,7 +72,9 @@ static void beforeAll() {

@AfterAll
static void afterAll() throws IOException {
serverSocket.close();
if (Objects.nonNull(serverSocket)) {
serverSocket.close();
}
}

@Test
Expand Down
1 change: 0 additions & 1 deletion spring-cloud-tencent-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@
<version>${springdoc.version}</version>
</dependency>


<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-webflux-ui</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spring:
contract:
exposure: true
report:
enabled: false
enabled: true
stat:
enabled: true
port: 28083
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spring:
contract:
exposure: true
report:
enabled: false
enabled: true
stat:
enabled: true
port: 28084
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spring:
contract:
exposure: true
report:
enabled: false
enabled: true
circuitbreaker:
enabled: true
stat:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spring:
contract:
exposure: true
report:
enabled: false
enabled: true
stat:
enabled: true
port: 28081
Expand Down

0 comments on commit 085f3d1

Please sign in to comment.