Commit abe36a61 by ping.wu

redis序列号报错问题修改

parent 45b5ff3d
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
*/ */
package cn.freemud; package cn.freemud;
import com.alibaba.fastjson.parser.ParserConfig;
import com.freemud.application.sdk.api.log.LogThreadLocal; import com.freemud.application.sdk.api.log.LogThreadLocal;
import feign.RequestInterceptor; import feign.RequestInterceptor;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
...@@ -53,6 +54,7 @@ public class ApiApplication { ...@@ -53,6 +54,7 @@ public class ApiApplication {
public static void main(String[] args) { public static void main(String[] args) {
String getenv = System.getenv("VERSION_FLAG"); String getenv = System.getenv("VERSION_FLAG");
System.setProperty("eureka.instance.metadataMap.version", StringUtils.isEmpty(getenv) ? GRAY_VERSION_PROD : GRAY_VERSION_GRAY.equals(getenv) ? GRAY_VERSION_GRAY : GRAY_VERSION_PROD); System.setProperty("eureka.instance.metadataMap.version", StringUtils.isEmpty(getenv) ? GRAY_VERSION_PROD : GRAY_VERSION_GRAY.equals(getenv) ? GRAY_VERSION_GRAY : GRAY_VERSION_PROD);
ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
SpringApplication.run(ApiApplication.class, args); SpringApplication.run(ApiApplication.class, args);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment