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 2020/11/22 16:23:01 UTC

[GitHub] [shardingsphere] elliotann opened a new issue #8297: In yaml mode, is there a configuration file loaded according from the classpath?

elliotann opened a new issue #8297:
URL: https://github.com/apache/shardingsphere/issues/8297


   ## Question
   In yaml mode, is there a configuration file loaded according from the classpath?
    **YamlShardingSphereDataSourceFactory.createDataSource(yaml)**
   
   


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



[GitHub] [shardingsphere] terrymanu closed issue #8297: In yaml mode, is there a configuration file loaded according from the classpath?

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


   


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



[GitHub] [shardingsphere] terrymanu commented on issue #8297: In yaml mode, is there a configuration file loaded according from the classpath?

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #8297:
URL: https://github.com/apache/shardingsphere/issues/8297#issuecomment-731913144


   You can use `public static DataSource createDataSource(final byte[] yamlBytes)` to load yaml from classpath and convert the content to yaml bytes.


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



[GitHub] [shardingsphere] elliotann commented on issue #8297: In yaml mode, is there a configuration file loaded according from the classpath?

Posted by GitBox <gi...@apache.org>.
elliotann commented on issue #8297:
URL: https://github.com/apache/shardingsphere/issues/8297#issuecomment-731914280


   > You can use `public static DataSource createDataSource(final byte[] yamlBytes)` to load yaml from classpath and convert the content to yaml bytes.
   
   Thanks very much.I have override this method in the project from classpath;
   public static DataSource createDataSource(final String classpathYamlFile) throws SQLException, IOException


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