SFlora opened a new issue #13554:
URL: https://github.com/apache/shardingsphere/issues/13554


   ### Which version of ShardingSphere did you use?
   5.0.0
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC
   ### Expected & Actual behavior
   
![image](https://user-images.githubusercontent.com/11220892/141272468-38932f7d-dfcd-414c-abea-47a81939b8e9.png)
   ### Reason analyze
   I did not configure the properties of "spring.shardingsphere.rules"
   Because I only need to use the distributed transaction of ShardingSphere
   
![image](https://user-images.githubusercontent.com/11220892/141265517-9e2b2874-8ece-4132-9f0f-f4e0ce77406c.png)
   In version 5.0.0-beta, the above configuration can successfully start the 
application
   But in version 5.0.0, the return result of the method getMatchOutcome in the 
class LocalRulesCondition is noMatch
   An exception will be thrown during startup
   """
   Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: 
No qualifying bean of type 
'org.apache.shardingsphere.infra.config.mode.ModeConfiguration' available: 
expected at least 1 bean which qualifies as autowire candidate. Dependency 
annotations: {}
   """
   If I configure the parameters
   spring.shardingsphere.mode.type= Memory
   The seata service will throw an exception again
   """
   Caused by: java.lang.NullPointerException: Cannot invoke 
"org.apache.shardingsphere.infra.metadata.resource.CachedDatabaseMetaData.getUrl()"
 because "this.cachedDatabaseMetaData" is null
   """
   When I configure the "spring.shardingsphere.rules" parameters to 
successfully start the application


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