trycache0828 commented on issue #10901:
URL:
https://github.com/apache/shardingsphere/issues/10901#issuecomment-867308724
> @trycache0828 Can you try the latest `5.0.0-beta` version? 4.1.1 is a
historical version and will not be maintained.
I would like to upgrade the middleware version.But now the configuration
parameters of the new version of middleware are not familiar, and the project
is also in a hurry.At present, the simple configuration of integration test has
not passed.
## Dependency package
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
<version>5.0.0-beta</version>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc-core</artifactId>
<version>5.0.0-beta</version>
</dependency>
## Reference example
## 5.x配置项
props:
sql-show: true
dataSources:
ds:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: ${spring.datasource.driver-class-name}
jdbcUrl: ${spring.datasource.url}
username: ${spring.datasource.username}
password: ${spring.datasource.password}
rules:
# 默认数据源
defaultDataSourceName: ds
tables:
t_user0:
actualDataNodes : ds.t_user$->{0..1}
tableStrategy:
standard:
shardingColumns: test_age
shardingAlgorithmName: t_user_tb_inline
shardingAlgorithms:
t_user_tb_inline:
type: INLINE
props:
algorithm-expression: t_user$->{test_age % 2}
--
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:
[email protected]