stelin opened a new issue #10699: URL: https://github.com/apache/shardingsphere/issues/10699
ShardingSphere-JDBC 4.1.1 default-database-strategy:hint can't use spring: shardingsphere: sharding: default-data-source-name: demo-1 default-database-strategy: hint: algorithm-class-name: com.ai94.mysql.annotation.AnnotationHintShardingAlgorithm datasource: names: demo-1,demo-2 # 配置第 1 个数据源 demo-1: type: com.zaxxer.hikari.HikariDataSource driverClassName: com.mysql.jdbc.Driver jdbcUrl: jdbc:mysql://localhost:3306/db_A?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC username: root password: root # 配置第 2 个数据源 demo-2: type: com.zaxxer.hikari.HikariDataSource driverClassName: com.mysql.jdbc.Driver jdbcUrl: jdbc:mysql://localhost:3306/db_B?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC username: root password: root -- 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]
