Skip to content

Commit 2bfe25e

Browse files
carryxyhbeiwei30
authored andcommitted
Make dynamic default true to promise that the url will delete from zk whenever provider shutdown. (#3824)
1 parent 4e5af75 commit 2bfe25e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dubbo-compatible/src/main/java/com/alibaba/dubbo/config/annotation/Service.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
boolean deprecated() default false;
4949

50-
boolean dynamic() default false;
50+
boolean dynamic() default true;
5151

5252
String accesslog() default "";
5353

dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractServiceConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public abstract class AbstractServiceConfig extends AbstractInterfaceConfig {
7474
* after the service registered,and it needs to be enabled manually; if you want to disable the service, you also need
7575
* manual processing
7676
*/
77-
protected Boolean dynamic = false;
77+
protected Boolean dynamic = true;
7878

7979
/**
8080
* Whether to use token

dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/annotation/Service.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@
7979
boolean deprecated() default false;
8080

8181
/**
82-
* Whether the service is dynamic, default value is false
82+
* Whether the service is dynamic, default value is true
8383
*/
84-
boolean dynamic() default false;
84+
boolean dynamic() default true;
8585

8686
/**
8787
* Access log for the service, default value is ""

0 commit comments

Comments
 (0)