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/12/02 02:55:15 UTC
[GitHub] [shardingsphere] zjcnb commented on issue #13887: using shadingjdbc5.0.0 ,there is a problem about No qualifying bean of type 'org.apache.shardingsphere.infra.config.mode.ModeConfiguration' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
zjcnb commented on issue #13887:
URL: https://github.com/apache/shardingsphere/issues/13887#issuecomment-984245481
@legendyman Hi, you can look this:
```
## mybatis的配置
mybatis:
mapper-locations: classpath*:mapper/**/*Mapper.xml
type-aliases-package: com.example
server:
port: 8899
spring:
shardingsphere:
props:
sql-show: true
sql-comment-parse-enabled: true
datasource:
ds0:
username: root
password: 123456
jdbc-url: jdbc:mysql://127.0.0.1:3306/test0
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
ds1:
username: root
password: 123456
jdbc-url: jdbc:mysql://127.0.0.1:3306/test1
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
names: ds0, ds1
rules:
readwrite-splitting:
data-sources:
master-slave:
write-data-source-name: ds0
read-data-source-names: ds1
load-balancer-name: load
load-balancers:
load:
type: ROUND_ROBIN
```
--
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