-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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
Unexpected startup of web server with RabbitMQ starter #12853
Comments
@nithia very nice, thank you for the sample. The AMQP client now brings
If you have a web environment and you want to disable it, add this to
I thought this was documented explicitly but it isn't so we should fix that as well. |
I've added a section in the doc in 31441a7 |
Thanks for the speedy response @snicoll 👍 Adding the property solves my immediate problem. Now I can get those Ops people off my back :) |
If we want to fix in |
Since 2.0.1, Spring Boot creates a AnnotationConfigReactiveWebServerApplicationContext as the application context instead of, as in 2.0.0, AnnotationConfigApplicationContext. This happens even if there is no web functionality in the project. This leads to the application trying to start a Netty web server on port 8080 for no apparent reason.
The attached project was generated from start.spring.io and includes only a RabbitMQ starter. On startup it creates handlers for URLs /webjars/** and /** for no apparent reason. This is both surprising and inconvenient as there doesn't seem to be any easy way to turn it off.
demo.zip
The text was updated successfully, but these errors were encountered: