trycache0828 opened a new issue #10901:
URL: https://github.com/apache/shardingsphere/issues/10901


   ## Question
   
   When I changed the datasource for JdbcTemplate to ShardingDataSource,The 
number of query records is normal, and the query result is empty.But if it is 
not set, the result is normal.
   
   
![jdbcTemplate20210622110142](https://user-images.githubusercontent.com/14318621/122856909-3844b680-d34a-11eb-881c-c70b3a442e3a.png)
   
   ## Usage scenarios
   
   Spring 3.x + Hibernate 4.x + Sharding-JDBC 4.1.0
   
   ## TODO Code
   
           DataSource dataSource = null;
           try {
               dataSource = 
ShardingDataSourceFactory.createDataSource(dataSourceMap, shardingRuleConfig,
                       buildShardingsphereProperties());
           } catch (SQLException e) {
               e.printStackTrace();
           }
           Logger.msg(String.format("datasource : {%s}", dataSource));
           return dataSource;
   
   ## Related issues
   
   some pertinent 
questions:https://github.com/apache/shardingsphere/issues/10843
   


-- 
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:
us...@infra.apache.org


Reply via email to