-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Improve FailureAnalyzer for embedded datasource #8029
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
- refactor DataSourceBeanCreationException getMessage;
Closing in favour of PR #11953 |
* pr/11953: Polish "Improve FailureAnalyzer for embedded datasource" Improve FailureAnalyzer for embedded datasource
I am very new about Spring, but I got the following error: APPLICATION FAILED TO START Description: Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and no embedded datasource could be auto-configured. Reason: Failed to determine a suitable driver class is there any workaround here , like put configuration in application.properieties? Thank you for your help. |
@ff-yzheng this issue is closed and we don't use the tracker for questions. Feel free to ask on StackOverflow or come chat with us on Gitter |
Uh oh!
There was an error while loading. Please reload this page.
The
FailureAnalyzer
for the embedded datasource is too focused on the embedded use case (that is the fallback to a proper configuration to a production database).Say that you start an app with JPA and MySQL, this is what you get
The link between MySQL and the embedded database isn't obvious at all actually. The action mentions "database settings" but the description doesn't. Perhaps we could be smarter and look in the environment?
If that exception is thrown, it means we've tried to auto-configure the
DataSource
. We can therefore safely assume that nospring.datasource.url
was specified. Perhaps we should mention that in the description?Actually, describing that we've tried to create an embedded database because no settings to configuration the database were found would be a good first start IMO.
The text was updated successfully, but these errors were encountered: