Support springboot placeholder configruation for Sharding-springboot
See original GitHub issue[Enhancement] Support springboot placeholder configruation for Sharding-springboot
Task content
User can use springboot placeholder${}  to configure sharding.jdbc.datasource.names, i.e.
sharding.jdbc.datasource.names=db_${random.int}
Current situation
User can not use springboot placeholder to configure sharding configurations.
Others
There is another issue #1686 related to this one, welcome to be responsible for two issues together for Sharding-spring project.
Reference
- Related issue: https://github.com/sharding-sphere/sharding-sphere/issues/1686
 - Sharding-spring project: https://github.com/sharding-sphere/sharding-spring
 
Issue Analytics
- State:
 - Created 5 years ago
 - Reactions:1
 - Comments:8 (3 by maintainers)
 
Top Results From Across the Web
Spring Boot Configuration - Apache ShardingSphere
is conflict with spring placeholder of properties, so use $->{. ... Driver spring.shardingsphere.datasource.ds0.url=jdbc:mysql://localhost:3306/ds0 ...
Read more >Common Application Properties - Spring
Name Description Default...
spring.cassandra.config Location of the configuration file to use.
spring.cassandra.controlconnection.timeout Timeout to use for control queries. 5s
spring.cassandra.keyspace‑name Keyspace name to use.
Read more >How to Read Value from Spring Boot Application Properties ...
In a Spring Boot application, the application.properties. ... You may consider using sharding to support the configuration of multiple underlying Aurora ...
Read more >Spring Boot CRUD Application with Thymeleaf - Baeldung
In this case, we'll rely on spring-boot-starter-parent for simple dependency management, versioning and plugin configuration.
Read more >Elasticsearch with Spring Boot + Spring Data - JavaCodeMonk
We need to create a main class for running spring boot application, model classes for Spring data elasticsearch, repository and service classes.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

An want to make it.
@xuminwlt Thanks for your PR#13, and it was merged already.