Skip to content

(re)use spring.datasource.validation-query property for DataSourceHealthIndicator #1282

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

Closed
mdeinum opened this issue Jul 22, 2014 · 0 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@mdeinum
Copy link
Contributor

mdeinum commented Jul 22, 2014

At the moment the DataSourceHealthIndicator does detection of the database type and query to use to validate if everything is ok. It is also possible to set a custom query when explicitly creating an instance yourself.

It would be a nice addition to re-use the spring.datasource.validation-query property as a validation query for the datasource health also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants