Skip to content

Setting management.port using spring-boot-starter-webflux results in error, requires javax.servlet.Servlet #10589

Closed
@spencergibb

Description

@spencergibb
***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 1 of constructor in org.springframework.boot.actuate.autoconfigure.web.server.ManagementContextAutoConfiguration$DifferentManagementContextConfiguration required a bean of type 'org.springframework.boot.actuate.autoconfigure.web.ManagementContextFactory' that could not be found.
	- Bean method 'reactiveWebChildContextFactory' not loaded because @ConditionalOnClass did not find required class 'javax.servlet.Servlet'
	- Bean method 'servletWebChildContextFactory' not loaded because @ConditionalOnClass did not find required class 'javax.servlet.Servlet'


Action:

Consider revisiting the conditions above or defining a bean of type 'org.springframework.boot.actuate.autoconfigure.web.ManagementContextFactory' in your configuration.

2.0.0.BUILD-SNAPSHOT.

A search of issues here didn't reveal anything obvious to me.

This stack overflow question describes the same thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions