SpringBoot2.4.3 + JPA + Hikari + ShardingSphere实现读写分离
1.数据库表结构CREATETABLE`t_user`(`id`int(11)NOTNULLAUTO_INCREMENT,`name`varchar(255)CHARACTERSETutf8COLLATEutf8_general_ciNULLDEFAULTNULL,`age`int(11)NULLDEFAULTNULL,PRIMARYKEY(`id`)USINGBTREE)ENGINE=InnoD