zjcnb opened a new issue #14067:
URL: https://github.com/apache/shardingsphere/issues/14067
Hi community,
Background
---
Now, you must to configure rules when you use ShardingSphere-JDBC, otherwise
it can't be use ShardingSphere-JDBC.
Problem
---
I found that our sql hit feature is already available in the master branch,
this feature can specify dataSource by yourself, such as: /* ShardingSphere
hint: DatasourceName=ds0 */.
Maybe user can use sql hit feature to switch data sources. So we check rules
does it exist. Is it necessary? If it is necessary to check it,
i think the error message cannot tell the user intuitively when user not
configuation rules.
not configuration about rules error message:
```
Unsatisfied dependency expressed through method ‘dataSource’ parameter 0;
nested exception is
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: {}.
```
Refer to
---
#13887.
#13719.
#13718.
#13554.
--
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]