Skip to content

@AutoConfigureWebTestClient breaks when SpringMVC is on the classpath #12318

@S1lentControl

Description

@S1lentControl

spring boot 2.0.0-RELEASE + spring-boot-starter-web-services 2.0.0.RELEASE
Tests with

@RunWith(SpringRunner::class)
@SpringBootTest
@AutoConfigureWebTestClient
class DemoApplicationTests {...

Application not started after adding spring-boot-starter-web-services to dependencies

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.test.web.reactive.server.WebTestClient]: Factory method 'webTestClient' threw exception; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'webHandler' available

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions