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/08/07 14:11:42 UTC

[GitHub] [shardingsphere] threeMonthee commented on issue #8299: Caused by: java.util.NoSuchElementException: No value bound

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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org