From 48ff738511cdb20b92c4cbc5fc60daabea4c3510 Mon Sep 17 00:00:00 2001 From: nkorange Date: Thu, 8 Aug 2019 11:44:03 +0800 Subject: [PATCH] Use dynamic server version --- .../java/com/alibaba/nacos/naming/misc/UtilsAndCommons.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/naming/src/main/java/com/alibaba/nacos/naming/misc/UtilsAndCommons.java b/naming/src/main/java/com/alibaba/nacos/naming/misc/UtilsAndCommons.java index c77b672a5..9d0ed3b5e 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/misc/UtilsAndCommons.java +++ b/naming/src/main/java/com/alibaba/nacos/naming/misc/UtilsAndCommons.java @@ -21,6 +21,7 @@ import com.alibaba.fastjson.parser.ParserConfig; import com.alibaba.fastjson.serializer.SerializeConfig; import com.alibaba.fastjson.serializer.SerializerFeature; import com.alibaba.nacos.api.naming.pojo.AbstractHealthChecker; +import com.alibaba.nacos.common.util.VersionUtils; import com.alibaba.nacos.naming.exception.NacosException; import com.alibaba.nacos.naming.healthcheck.JsonAdapter; import com.alibaba.nacos.naming.selector.Selector; @@ -70,7 +71,7 @@ public class UtilsAndCommons { public static final String NACOS_SERVER_HEADER = "Nacos-Server"; - public static final String NACOS_VERSION = "1.0.1"; + public static final String NACOS_VERSION = VersionUtils.VERSION; public static final String SUPER_TOKEN = "xy";