From 1e897ccad2a73059ce5be5744a315b8fe5394fe4 Mon Sep 17 00:00:00 2001 From: weihu Date: Wed, 6 Jul 2022 09:25:30 +0800 Subject: [PATCH] update bug --- .../config/adapter/PolarisPropertySourceAutoRefresher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-starter-tencent-polaris-config/src/main/java/com/tencent/cloud/polaris/config/adapter/PolarisPropertySourceAutoRefresher.java b/spring-cloud-starter-tencent-polaris-config/src/main/java/com/tencent/cloud/polaris/config/adapter/PolarisPropertySourceAutoRefresher.java index bdb8d3f75..bbd86d030 100644 --- a/spring-cloud-starter-tencent-polaris-config/src/main/java/com/tencent/cloud/polaris/config/adapter/PolarisPropertySourceAutoRefresher.java +++ b/spring-cloud-starter-tencent-polaris-config/src/main/java/com/tencent/cloud/polaris/config/adapter/PolarisPropertySourceAutoRefresher.java @@ -157,7 +157,7 @@ public class PolarisPropertySourceAutoRefresher value = parseJsonValue((String) value, springValue.getTargetType()); } else { - value = springValue.isField() ? this.typeConverter.convertIfNecessary(value, springValue.getTargetType()) : + value = springValue.isField() ? this.typeConverter.convertIfNecessary(value, springValue.getTargetType(), springValue.getField()) : this.typeConverter.convertIfNecessary(value, springValue.getTargetType(), springValue.getMethodParameter()); }