diff --git a/spring-cloud-alibaba-examples/nacos-example/nacos-config-example/src/main/java/com/alibaba/cloud/examples/example/DockingInterfaceExample.java b/spring-cloud-alibaba-examples/nacos-example/nacos-config-example/src/main/java/com/alibaba/cloud/examples/example/DockingInterfaceExample.java index 6cba30783..d023c139c 100644 --- a/spring-cloud-alibaba-examples/nacos-example/nacos-config-example/src/main/java/com/alibaba/cloud/examples/example/DockingInterfaceExample.java +++ b/spring-cloud-alibaba-examples/nacos-example/nacos-config-example/src/main/java/com/alibaba/cloud/examples/example/DockingInterfaceExample.java @@ -17,6 +17,7 @@ package com.alibaba.cloud.examples.example; import java.util.concurrent.Executor; +import java.util.concurrent.Executors; import com.alibaba.cloud.commons.lang.StringUtils; import com.alibaba.cloud.nacos.NacosConfigManager; @@ -118,7 +119,7 @@ public class DockingInterfaceExample { configService.addListener(dataId, group, new Listener() { @Override public Executor getExecutor() { - return null; + return Executors.newSingleThreadExecutor(); } @Override