You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get "malfrom url" exception because jdbc get "${KEY_IN_OS_ENV}" for url connection
Reason analyze
Sharding JDBC get configuration from spring boot yaml files by io.shardingjdbc.spring.boot.SpringBootConfiguration. The code to get datasource configuration is blow
getProperty(String) can recognize placeholder and parse it. But RelaxedPropertyResolver.getSubProperties(String) can't. So all the placeholder has been resolved as raw string and pass to Sharding JDBC framework.
The text was updated successfully, but these errors were encountered:
terrymanu
changed the title
Can't resolve placeholder in spring boot configuration yaml
Can't resolve placeholder in Spring Boot YAML configuration
Aug 8, 2018
For English only, other languages we will close it directly.
Please answer these questions before submitting your issue. Thanks!
Which version of Sharding-Sphere do you using?
2.0.3
Expected behavior
resolve placeholder
Actual behavior
treat placeholder as raw string
Steps to reproduce the behavior
Reason analyze
Sharding JDBC get configuration from spring boot yaml files by
io.shardingjdbc.spring.boot.SpringBootConfiguration
. The code to get datasource configuration is blowgetProperty(String)
can recognize placeholder and parse it. ButRelaxedPropertyResolver.getSubProperties(String)
can't. So all the placeholder has been resolved as raw string and pass to Sharding JDBC framework.The text was updated successfully, but these errors were encountered: