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/06/29 01:25:38 UTC
[GitHub] [shardingsphere] whiltemoon commented on issue #11047: 5.0.0_beta版本启动报错,空指针
whiltemoon commented on issue #11047:
URL: https://github.com/apache/shardingsphere/issues/11047#issuecomment-870156801
spring:
shardingsphere:
props:
sql-show: true
datasource:
names:
master,slave
common:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
master:
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:xxxxx
username: xxx
password: xxx
druid:
initial-size: 5
max-active: 20
min-idle: 5
slave:
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://sxxxx
username: xxx
password: xxx
druid:
initial-size: 5
max-active: 20
min-idle: 5
rules:
readwrite-splitting:
data-sources:
ds:
write-data-source-name: master
read-data-source-names: slave
--
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