zt9788 commented on issue #22790:
URL: 
https://github.com/apache/shardingsphere/issues/22790#issuecomment-1345560346

   > Hi @zt9788
   > 
   > 1, Does import db.yml to spring configuration work? (You could try to 
embed it manually to test)
   
   @sandynz 
   
   Well, SpringBoot can not read `- !`... like `!READWRITE_SPLITTING `
   even if Springboot read the yaml ,that alwasy a bean , and can not to set 
the Url( I saw the Sharding use the `getResoueAsStream` or `FileInputStream` in 
`ShardingSphereDriverURL`
   
   > 2, Maybe you could check spring or Nacos documentation to find out how to 
import another configuration file. (I don't know what the second configuration 
type is)
   
   yes, i can create datasouce use the createDataSouce Api
   like :
   use nacos-client(other config  center) read yml and when the program start 
to use the shardingShpere  `createDataSouce` 
   but I think the way is complex ,(if the api changed , I need upgrade 
configuration everytime)
   
   so, I want to know ,will the shardingshpere support another way to config 
the DataSource ,like url: beanName?


-- 
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]

Reply via email to