Skip to content

Unexpected startup of web server with RabbitMQ starter #12853

Closed
@nithia

Description

@nithia

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions