threeMonthee commented on issue #8299:
URL: https://github.com/apache/shardingsphere/issues/8299#issuecomment-894660077


   > @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 config common datasource in springboot 2.5.2,  But it's still `No value 
bound ` why?


-- 
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]


Reply via email to