You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/06/17 05:54:57 UTC
[GitHub] [incubator-shardingsphere] KomachiSion edited a comment on issue
#2565: How to read the configuration from ZK every time the service is
restarted
KomachiSion edited a comment on issue #2565: How to read the configuration from ZK every time the service is restarted
URL: https://github.com/apache/incubator-shardingsphere/issues/2565#issuecomment-502543727
Also you can see other example in [incubator-shardingsphere-example](https://github.com/apache/incubator-shardingsphere-example/tree/4.0.0-RC1/sharding-jdbc-example/orchestration-example/orchestration-spring-namespace-example)
Remember to change mod to `cloud`
```
public class SpringNamespaceExample {
private static ShardingType shardingType = ShardingType.SHARDING_DATABASES_AND_TABLES;
// private static ShardingType shardingType = ShardingType.MASTER_SLAVE;
// private static ShardingType shardingType = ShardingType.ENCRYPT;
// private static boolean loadConfigFromRegCenter = false;
private static boolean loadConfigFromRegCenter = true;
....
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services