ctruk commented on issue #2871: Make sure SpringBootConfiguration.class load 
before DataSourceAutoConfiguration.class
URL: 
https://github.com/apache/incubator-shardingsphere/pull/2871#issuecomment-599819723
 
 
   When upgrading from 4.0.0-RC1 to 4.0.0-RC2 or above, the error "URL is not 
specified" is reported.
   
   After debugging, I discovered that it is because 
'com.alibab.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure. was 
loaded in AbstractBeanFactory.doGetBean instead of this class 
"org.apache.shardingsphere.shardingjdbc.spring.boot.SpringBootConfiguration". 
As a result, the code you submitted does not take effect.
   
   So I used "@SpringBootApplication (exclude = 
DruidDataSourceAutoConfigure.class)" to solve it temporarily. Is there any 
other solution?

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