zengqi826 commented on issue #8299: URL: https://github.com/apache/shardingsphere/issues/8299#issuecomment-892503496
> @chachacha88 Hi, you can config this : > > ``` > spring.shardingsphere.datasource.common.type=com.zaxxer.hikari.HikariDataSource > spring.shardingsphere.datasource.common.driver-class-name=com.mysql.jdbc.Driver > spring.shardingsphere.datasource.common.username=root > spring.shardingsphere.datasource.common.password= 123456 > > spring.shardingsphere.datasource.ds_0.jdbc-url=jdbc:mysql://192.169.2.29:3306/demo_ds_0?serverTimezone=UTC&useSSL=false > spring.shardingsphere.datasource.ds_1.jdbc-url=jdbc:mysql://192.169.2.29:3306/demo_ds_1?serverTimezone=UTC&useSSL=false > ``` > > why: > if you not config datasource common , in springboot 2.4 May be NullpointExcepiton I suggest updating this to the shardingsphere's website。 https://shardingsphere.apache.org/document/current/cn/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/ -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
