You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.9 KiB
53 lines
1.9 KiB
1 year ago
|
#
|
||
|
spring.application.name=www
|
||
|
server.port=8081
|
||
|
##1800s
|
||
|
#server.servlet.session.timeout=1800
|
||
|
#spring.jackson.time-zone=GMT+8
|
||
|
#spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
|
||
|
#
|
||
|
##��������Դ
|
||
|
#spring.shardingsphere.datasource.names=m1,m2
|
||
|
#
|
||
|
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/test?serverTimezone=GMT%2b8&useUnicode=true&characterEncoding=utf8
|
||
|
spring.datasource.username=root
|
||
|
spring.datasource.password=123456
|
||
|
spring.datasource.driver�\class�\name=com.mysql.cj.jdbc.Driver
|
||
|
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
|
||
|
#
|
||
|
#
|
||
|
#spring.shardingsphere.datasource.m2.url=jdbc:mysql://127.0.0.1:3306/test2?serverTimezone=GMT%2b8&useUnicode=true&characterEncoding=utf8
|
||
|
#spring.shardingsphere.datasource.m2.username=root
|
||
|
#spring.shardingsphere.datasource.m2.password=123456
|
||
|
#spring.shardingsphere.datasource.m2.driver�\class�\name=com.mysql.cj.jdbc.Driver
|
||
|
#spring.shardingsphere.datasource.m2.type=com.alibaba.druid.pool.DruidDataSource
|
||
|
#
|
||
|
## ָ��t_user�������ݷֲ��������������ݽڵ�
|
||
|
#spring.shardingsphere.sharding.tables.t_user.actual�\data�\nodes=m$->{1..2}.t_user_$->{1..2}
|
||
|
#
|
||
|
## ָ��t_user�����������ɲ���ΪSNOWFLAKE
|
||
|
#spring.shardingsphere.sharding.tables.t_user.key�\generator.column=id
|
||
|
#spring.shardingsphere.sharding.tables.t_user.key�\generator.type=SNOWFLAKE
|
||
|
#
|
||
|
## ָ��t_user���ķֿ����ԣ��ֿ���������Ƭ���ͷ�Ƭ�㷨
|
||
|
#spring.shardingsphere.sharding.tables.t_user.database-strategy.inline.sharding�\column=sex
|
||
|
#spring.shardingsphere.sharding.tables.t_user.database-strategy.inline.algorithm�\expression=m$->{sex % 2 + 1}
|
||
|
#
|
||
|
#
|
||
|
## ָ��t_user���ķֱ����ԣ��ֱ���������Ƭ���ͷ�Ƭ�㷨
|
||
|
#spring.shardingsphere.sharding.tables.t_user.table�\strategy.inline.sharding�\column=id
|
||
|
#spring.shardingsphere.sharding.tables.t_user.table�\strategy.inline.algorithm�\expression=t_user_$->{id % 2 + 1}
|
||
|
#
|
||
|
#
|
||
|
## ����̨��־����
|
||
|
#logging.level.root=info
|
||
|
#
|
||
|
## ����sql������־
|
||
|
#spring.shardingsphere.props.sql.show=true
|
||
|
#
|
||
|
##mapper�ļ�ɨ��·��
|
||
|
#mybatis.mapper-locations=classpath:/mapper/*.xml
|
||
|
#
|
||
|
#
|
||
|
#
|