dahaian edited a comment on issue #2694: I got a error when I Integrate spring 
boot with sharding jdbc
URL: 
https://github.com/apache/incubator-shardingsphere/issues/2694#issuecomment-510382415
 
 
   @KomachiSion  I follow you add 
spring.shardingsphere.sharding.tables.t_order.key-generator.type=SNOWFLAKE or 
spring.shardingsphere.sharding.tables.t_order.key-generator.type=UUID and 
retry. But I got a error is:
   
   org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'testC': Injection of resource dependencies failed; nested exception 
is org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'dataSource' defined in class path resource 
[org/apache/shardingsphere/shardingjdbc/spring/boot/SpringBootConfiguration.class]:
 Bean instantiation via factory method failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested 
exception is java.lang.NullPointerException
   
   Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'dataSource' defined in class path resource 
[org/apache/shardingsphere/shardingjdbc/spring/boot/SpringBootConfiguration.class]:
 Bean instantiation via factory method failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested 
exception is java.lang.NullPointerException
   
   Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw 
exception; nested exception is java.lang.NullPointerException
   
   My config file is:
   
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to