File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
java/org/ylc/note/shardingsphere/config Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 3232 <artifactId >sharding-jdbc-spring-boot-starter</artifactId >
3333 </dependency >
3434
35- <!-- ShardingSphere 服务编排 -->
35+ <!-- ShardingSphere 注册配置中心 begin (直接配置文件配置的话不需要引入) -->
3636 <dependency >
3737 <groupId >org.apache.shardingsphere</groupId >
3838 <artifactId >sharding-orchestration-reg-nacos</artifactId >
4242 <groupId >com.alibaba.nacos</groupId >
4343 <artifactId >nacos-client</artifactId >
4444 </dependency >
45+ <!-- ShardingSphere 注册配置中心 end -->
4546
4647 <dependency >
4748 <groupId >org.mybatis.spring.boot</groupId >
Original file line number Diff line number Diff line change 1313 * 代码千万行,注释第一行,
1414 * 注释不规范,同事泪两行。
1515 * <p>
16- * 本地注册中心
16+ * 本地注册中心(作废)
1717 *
1818 * @author YuLc
1919 * @version 1.0.0
2020 * @date 2020/7/26
2121 */
22+ @ Deprecated
2223public class LocalRegistryCenter implements RegistryCenter {
2324
2425 public static Map <String , DataChangedEventListener > LISTENERS = new ConcurrentHashMap <>();
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ spring:
3535 # 分表策略
3636 tables :
3737 sys_log :
38- # 真实的数据节点,数据源+表名的形式
38+ # 真实的数据节点,数据源+表名的形式(临时数据,这里需要通过配置中心来实现动态配置)
3939 actual-data-nodes : sharding$->{0..1}.sys_log_20200$->{7..9}
4040 table-strategy :
4141 standard :
You can’t perform that action at this time.
0 commit comments