qh3001 opened a new issue, #33937:
URL: https://github.com/apache/shardingsphere/issues/33937
I'm new to use shardingsphere.
My environment is spring boot 2.5.7 and
shardingsphere-jdbc-core-spring-boot-starter 5.1.2
When I inject shardingsphere datasource in spring bean, it is null. My
sample code like blow and it returns null.
@Configuration
public class DataSourceConfiguration {
@Resource
private ShardingSphereDataSource shardingSphereDataSource;
@Primary
@Bean
public DataSource dataSource() {
System.out.println(shardingSphereDataSource);
return shardingSphereDataSource;
}
}
is any mistatake for this code?
--
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]