-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Improve AutoConfiguration error message for when DataSource bean is missing and spring-data-jpa is a dependency #795
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
Comments
A more informative error message is missing here. Maybe SpringApplication.run could catch the issue and provide a good error message? |
#855 (comment) is relevant here. |
@wilkinsona that one looks like a good candidate for a |
Agreed. I think that was why I labelled it with |
This might be handled by #6612 |
If I remove H2 from
That's certainly better than before, but there's still some room for improvement. We have #8029 open for that. |
No qualifying bean of type [javax.sql.DataSource] is defined
does not inform me what my next configuration step should be. Maybe it should prompt me to include a database as a dependency.The text was updated successfully, but these errors were encountered: