You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/02/25 12:09:22 UTC

[GitHub] [shardingsphere] linghengqian opened a new issue #15641: Changes to DataSourcePoolCreator cause warnings in spring.shardingsphere.datasource configuration

linghengqian opened a new issue #15641:
URL: https://github.com/apache/shardingsphere/issues/15641


   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response anymore and we cannot reproduce it on current information, we will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   
   5.1.0
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   `ShardingSphere-JDBC`
   
   ### Expected behavior
   
   Everything configured in YAML should work fine.
   
   ### Actual behavior
   
   as the picture shows.
   
   ![7efe1e3240b9552a55b0e4fe46c0b237ef70caee_2_1035x493](https://user-images.githubusercontent.com/20187731/155712529-7a4c8527-b738-4ea5-8846-63b160d63ace.png)
   
   
   ### Reason analyze (If you can)
   
   In https://github.com/apache/shardingsphere/pull/15249 , used `org.apache.shardingsphere.infra.datasource.pool.creator.DataSourcePoolCreator` instead of `org.apache .shardingsphere.spring.boot.util.DataSourceUtil` , and removed the following json segment.
   ```json
   {
      "properties": [
        {
          "name": "spring.shardingsphere.datasource",
          "type": "java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>",
          "sourceType": "org.apache.shardingsphere.spring.boot.util.DataSourceUtil"
        }
      ]
   }
   ```
   This leads to a unified warning for the configuration under `spring.shardingsphere.datasource`, which is similar to `Cannot resolve configuration property 'spring.shardingsphere.datasource.shardingmaster.jdbc-url'`
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   Non-runtime operations.
   
   ### Example codes for reproduce this issue (such as a github link).
   
   Reference https://community.sphere-ex.com/t/topic/786 . 


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] totalo closed issue #15641: Changes to DataSourcePoolCreator cause warnings in spring.shardingsphere.datasource configuration

Posted by GitBox <gi...@apache.org>.
totalo closed issue #15641:
URL: https://github.com/apache/shardingsphere/issues/15641


   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org