-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quarkus上新增分片规则,请问如何实现? #145
Comments
Thanks @MrYang-Jia for your reporting! So at first, is this configuration working on the plain shardingsphere or other runtime, such as |
谢谢您的反馈,但是我使用的不是springBoot,不知道在quarkus上,我想这么实现自定义策略,我需要怎么做?有对应的实现案例吗? Thank you for your feedback, but I am not using SpringBoot and I am not sure if I want to implement a custom policy on Quarkus. What do I need to do? Is there a corresponding implementation case?
|
As I far as Know, there was no such case before. So can you share with a project? Maybe I can take a look next week. |
@zhfeng 您好,我已经找到了解决方案,几个问题一起反馈下吧!
第二个问题:<shardingsphere.version>5.4.0</shardingsphere.version> 构建规则时报 org.apache.shardingsphere.sharding.algorithm.sharding.complex.ComplexInlineShardingAlgorithm 找不到,原因是 5.4.0 调整了该类的位置,导致异常 ,5.4.0 的位置为 org.apache.shardingsphere.sharding.algorithm.sharding.inline.ComplexInlineShardingAlgorithm.class |
所以方便的话,最好还是您这里将这两个问题给修复下,因为quarkus是可以在 runtime 目录底下将对应有问题的类覆写,还有修正一些可能性的第三方jar包bug,感谢您抽空阅读完我编写的信息,谢谢 |
@MrYang-Jia Sorry for the late reply and thanks for your investigation! Is it possible to share your project with sharding algorithm? |
目前我是在配置文件 org.apache.shardingsphere.sharding.spi.ShardingAlgorithm 里添加新的分片规则,结果发现配置表里引用的话会引用不到,请问如何实现
pom 配置如下
config.yaml
application.properties 配置内容如下,不引入自定义分片规则的情况下可正常运行
报错信息如下:
The text was updated successfully, but these errors were encountered: