-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Unexpected behavior with DevTools when 'main' throws an exception #26894
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
main
throws an exceptionmain
throws an exception
We need to distinguish between a failure that occurs when refreshing the application context and a failure that occurs outside of that. Only the former should result in a retry once the user's made a change. One approach would be to check the stack trace of the failure and see if it was thrown from within I'd like to chat to @philwebb before merging anything. |
main
throws an exception
If your
main
method throws an exception, e.g.and you have Spring devtools enabled, the behavior is as follows:
It all looks normal.
Still looks normal.
No longer looks normal as two application instances are started.
After this, 3 instances are started. Then 4 and so on.
Or then at some point, it all just fails with
Not sure what you can or will want to do about this but it caused quite some confusion for me.
The text was updated successfully, but these errors were encountered: