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/04/19 03:55:22 UTC
[GitHub] [shardingsphere] yakamy opened a new issue #5230:
sharding-jdbc-spring-boot-starter
yakamy opened a new issue #5230: sharding-jdbc-spring-boot-starter
URL: https://github.com/apache/shardingsphere/issues/5230
when i use spring-boot-starter to config my sharding configuration, i found a trouble:
the datasource configuration is only can config from the yml,
i want to config datasource through spring bean, and config sharding strategy through yml because our datasource config is encrypted that can't be config through the yml.
i read the source code found than, the sharding config get datasource only from yml or jndi.
i suggest enhance the datasource config that user can defined through spring java bean,
add a way to inject user defined datasource in the following class.
`org.apache.shardingsphere.shardingjdbc.spring.boot.SpringBootConfiguration`
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [shardingsphere] kimmking commented on issue #5230:
sharding-jdbc-spring-boot-starter inject datasource through bean
Posted by GitBox <gi...@apache.org>.
kimmking commented on issue #5230: sharding-jdbc-spring-boot-starter inject datasource through bean
URL: https://github.com/apache/shardingsphere/issues/5230#issuecomment-616134928
sharding-jdbc-spring-boot-starter use spring boot style configurations.
if you want use sharding-jdbc yaml style to config rules, you should remove sharding-jdbc-spring-boot-starter, and launch config yaml file from a java config way.
----------------------------------------------------------------
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
With regards,
Apache Git Services