Files
tlmall-v5-single/tulingmall-sk/tulingmall-sk-order/docs/分库分表相关配置.txt

7 lines
433 B
Plaintext
Raw Permalink Normal View History

2022-11-01 12:14:54 +08:00
分库分表功能开发顺序:
1、Order模块启动类TulingmallOrderApplication在@SpringBootApplication注解保留ShardingSphere需要的SpringBootConfiguration配置类。
2、调整应用配置
application.yml.datasource相关的配置。
也去掉nacos中spirng.datasource相关的配置。
然后打开application.properties文件中的配置信息。
3、按照配置文件调整相关的数据库环境。