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 2022/12/30 01:52:52 UTC
[GitHub] [shardingsphere] youlongchengfeng commented on issue #23173: custom HintShardingAlgorithm initialize more then once when project started
youlongchengfeng commented on issue #23173:
URL: https://github.com/apache/shardingsphere/issues/23173#issuecomment-1367680219
> Hi @youlongchengfeng It's hard to answer your question without any information about your environment. Please provide us detail of your project, such as version, configuration...
i'am sorry
version is shardingSphere5.2.1
configuration as follows
spring:
shardingsphere:
props:
sql-show: true
datasource:
names: db1
db1:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/hb99_gengy?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true&allowMultiQueries=true
username: root
password: root
type: com.alibaba.druid.pool.DruidDataSource
rules:
sharding:
sharding-algorithms:
myHint:
props:
strategy: hint
algorithmClassName: com.longshun.admin.shardingalgorithm.MyTableHintShardingAlgorithm
type: CLASS_BASED
tables:
t_student:
actual-data-nodes: db1.t_student0,db1.t_student1
table-strategy:
hint:
sharding-algorithm-name: myHint
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org