Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to config common properties on the yml #27368

Closed
Waylon-Firework opened this issue Jul 22, 2023 · 3 comments
Closed

How to config common properties on the yml #27368

Waylon-Firework opened this issue Jul 22, 2023 · 3 comments
Assignees

Comments

@Waylon-Firework
Copy link

Waylon-Firework commented Jul 22, 2023

Question

Version: 5.4.0

if I set some properties, the app cannot restart. Such as:

database_url: localhost:3306

and using it like this: ${database_url} .

I can't declare custom attributes

database_url: localhost:3306

dataSources:
  demo:
    dataSourceClassName: com.alibaba.druid.pool.DruidDataSource
    url: jdbc:mysql://${database_url}/demo
@zhaojinchao95
Copy link
Contributor

The database_url configuration does not exist in ShardingSphere. The ${database_url} not support, you can use ShardingSphereDriver to use ShardingSphere-JDBC.

@github-actions
Copy link

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.

@github-actions github-actions bot added the stale label Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants