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 2021/05/20 05:08:37 UTC
[GitHub] [shardingsphere] childewuque opened a new issue #10397: how to config SPI sharding class in springboot2.3?
childewuque opened a new issue #10397:
URL: https://github.com/apache/shardingsphere/issues/10397
shardingsphere jdbc 5.0.0-alpha
public class DBShardingAlgorithm implements StandardShardingAlgorithm<Long>
resources/META-INF/spring.factories
org.apache.shardingsphere.sharding.api.sharding.standard.StandardShardingAlgorithm=com.test.DBShardingAlgorithm
`database-class-based:
type: CLASS_BASED
props:
strategy: standard
algorithmClassName: com.test.DBShardingAlgorithm
error:
org.apache.shardingsphere.infra.spi.exception.ServiceProviderNotFoundException: No implementation class load from SPI `org.apache.shardingsphere.sharding.spi.ShardingAlgorithm` with type `CLASS_BASED`.
at org.apache.shardingsphere.infra.spi.typed.TypedSPIRegistry.getRegisteredService(TypedSPIRegistry.java:50)`
So how to config spi ? thanks!
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] strongduanmu closed issue #10397: how to config SPI sharding class in springboot2.3?
Posted by GitBox <gi...@apache.org>.
strongduanmu closed issue #10397:
URL: https://github.com/apache/shardingsphere/issues/10397
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] strongduanmu commented on issue #10397: how to config SPI sharding class in springboot2.3?
Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #10397:
URL: https://github.com/apache/shardingsphere/issues/10397#issuecomment-844731954
@childewuque After this [PR](https://github.com/apache/shardingsphere/pull/8508) is merged, we use the `CLASS_BASED` sharding algorithm without additional configuration of SPI, just specify the `algorithmClassName` parameter. Therefore, you can try the latest code from the master branch.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] childewuque commented on issue #10397: how to config SPI sharding class in springboot2.3?
Posted by GitBox <gi...@apache.org>.
childewuque commented on issue #10397:
URL: https://github.com/apache/shardingsphere/issues/10397#issuecomment-844751772
> @childewuque After this [PR](https://github.com/apache/shardingsphere/pull/8508) is merged, we use the `CLASS_BASED` sharding algorithm without additional configuration of SPI, just specify the `algorithmClassName` parameter. Therefore, you can try the latest code from the master branch.
Thank u,I'll try the master branch.
And looking forward to the next version
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] childewuque commented on issue #10397: how to config SPI sharding class in springboot2.3?
Posted by GitBox <gi...@apache.org>.
childewuque commented on issue #10397:
URL: https://github.com/apache/shardingsphere/issues/10397#issuecomment-844724304
org.apache.shardingsphere.sharding.spi.ShardingAlgorithm=com.test.DBShardingAlgorithm
org.apache.shardingsphere.infra.spi.exception.ServiceProviderNotFoundException: No implementation class load from SPI `org.apache.shardingsphere.sharding.spi.ShardingAlgorithm` with type `CLASS_BASED`
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org