1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

Code Style

This commit is contained in:
mercyblitz
2020-09-18 17:08:59 +08:00
parent a1f4ab0c4d
commit 9e708b1c1c
5 changed files with 8 additions and 4 deletions

View File

@@ -108,9 +108,9 @@ public class DubboServiceRegistrationNonWebApplicationAutoConfiguration {
for (List<URL> urls : repository.getAllExportedUrls().values()) {
urls.stream().filter(
url -> REST_PROTOCOL.equalsIgnoreCase(url.getProtocol()))
.findFirst().ifPresent(url -> {
serverPort = url.getPort();
});
.findFirst().ifPresent(url -> {
serverPort = url.getPort();
});
// If REST protocol is not present, use any applied port.
if (serverPort == null) {