From 026437f23384ea1bf326598084aa87b7609c3c12 Mon Sep 17 00:00:00 2001
From: Haotian Zhang <928016560@qq.com>
Date: Fri, 28 Jul 2023 16:33:42 +0800
Subject: [PATCH] fix:update some modifier order.
---
pom.xml | 6 +++---
.../tencent/cloud/common/constant/OrderConstant.java | 6 +++---
spring-cloud-tencent-dependencies/pom.xml | 2 +-
.../plugin/PolarisEnhancedPluginUtils.java | 12 ++++++------
4 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/pom.xml b/pom.xml
index 69d9b1295..bc70f604c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
org.springframework.cloud
spring-cloud-build
- 3.0.5
+ 2.3.5.RELEASE
4.0.0
@@ -16,7 +16,7 @@
${revision}
Spring Cloud Tencent
Spring Cloud Tencent
- https://github.com/Tencent/spring-cloud-tencent/tree/2020.0
+ https://github.com/Tencent/spring-cloud-tencent/tree/hoxton
Tencent
@@ -26,7 +26,7 @@
The BSD 3-Clause License (BSD3)
- https://raw.githubusercontent.com/Tencent/spring-cloud-tencent/2020.0/LICENSE
+ https://raw.githubusercontent.com/Tencent/spring-cloud-tencent/hoxton/LICENSE
repo
diff --git a/spring-cloud-tencent-commons/src/main/java/com/tencent/cloud/common/constant/OrderConstant.java b/spring-cloud-tencent-commons/src/main/java/com/tencent/cloud/common/constant/OrderConstant.java
index 177a6a6fe..1f9cdcef2 100644
--- a/spring-cloud-tencent-commons/src/main/java/com/tencent/cloud/common/constant/OrderConstant.java
+++ b/spring-cloud-tencent-commons/src/main/java/com/tencent/cloud/common/constant/OrderConstant.java
@@ -172,17 +172,17 @@ public class OrderConstant {
/**
* Discovery config modifier order.
*/
- public static Integer DISCOVERY_CONFIG_ORDER = Integer.MAX_VALUE;
+ public static Integer DISCOVERY_CONFIG_ORDER = Integer.MAX_VALUE - 10;
/**
* Nacos discovery config modifier order.
*/
- public static Integer NACOS_DISCOVERY_CONFIG_ORDER = Integer.MAX_VALUE;
+ public static Integer NACOS_DISCOVERY_CONFIG_ORDER = Integer.MAX_VALUE - 10;
/**
* Consul discovery config modifier order.
*/
- public static Integer CONSUL_DISCOVERY_CONFIG_ORDER = Integer.MAX_VALUE;
+ public static Integer CONSUL_DISCOVERY_CONFIG_ORDER = Integer.MAX_VALUE - 10;
/**
* Order of discovery configuration modifier.
diff --git a/spring-cloud-tencent-dependencies/pom.xml b/spring-cloud-tencent-dependencies/pom.xml
index 4b6fd9fa2..e49d7c556 100644
--- a/spring-cloud-tencent-dependencies/pom.xml
+++ b/spring-cloud-tencent-dependencies/pom.xml
@@ -73,7 +73,7 @@
1.12.0-Hoxton.SR12-SNAPSHOT
- 1.13.0
+ 1.14.0-SNAPSHOT
32.0.1-jre
1.2.11
4.5.1
diff --git a/spring-cloud-tencent-rpc-enhancement/src/main/java/com/tencent/cloud/rpc/enhancement/plugin/PolarisEnhancedPluginUtils.java b/spring-cloud-tencent-rpc-enhancement/src/main/java/com/tencent/cloud/rpc/enhancement/plugin/PolarisEnhancedPluginUtils.java
index e1556c82d..2ace4619c 100644
--- a/spring-cloud-tencent-rpc-enhancement/src/main/java/com/tencent/cloud/rpc/enhancement/plugin/PolarisEnhancedPluginUtils.java
+++ b/spring-cloud-tencent-rpc-enhancement/src/main/java/com/tencent/cloud/rpc/enhancement/plugin/PolarisEnhancedPluginUtils.java
@@ -75,17 +75,17 @@ import static org.springframework.http.HttpStatus.VARIANT_ALSO_NEGOTIATES;
*/
public final class PolarisEnhancedPluginUtils {
- private PolarisEnhancedPluginUtils() {
-
- }
-
private static final Logger LOG = LoggerFactory.getLogger(PolarisEnhancedPluginUtils.class);
private static final List HTTP_STATUSES = toList(NOT_IMPLEMENTED, BAD_GATEWAY,
SERVICE_UNAVAILABLE, GATEWAY_TIMEOUT, HTTP_VERSION_NOT_SUPPORTED, VARIANT_ALSO_NEGOTIATES,
INSUFFICIENT_STORAGE, LOOP_DETECTED, BANDWIDTH_LIMIT_EXCEEDED, NOT_EXTENDED, NETWORK_AUTHENTICATION_REQUIRED);
+ private PolarisEnhancedPluginUtils() {
+
+ }
/**
* createServiceCallResult.
+ * @param callerHost caller host ip
* @param calleeServiceName will pick up url host when null
* @param calleeHost will pick up url host when null
* @param calleePort will pick up url port when null
@@ -168,7 +168,8 @@ public final class PolarisEnhancedPluginUtils {
}
RpcEnhancementReporterProperties reportProperties;
try {
- reportProperties = ApplicationContextAwareUtils.getApplicationContext().getBean(RpcEnhancementReporterProperties.class);
+ reportProperties = ApplicationContextAwareUtils.getApplicationContext()
+ .getBean(RpcEnhancementReporterProperties.class);
}
catch (BeansException e) {
LOG.error("get RpcEnhancementReporterProperties bean err", e);
@@ -279,5 +280,4 @@ public final class PolarisEnhancedPluginUtils {
return null;
}
-
}