`@AutoConfigureWebTestClient` breaks when SpringMVC is on the classpath
See original GitHub issuespring 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
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Spring Boot Features
This section dives into the details of Spring Boot. Here you can learn about the key features that you may want to use...
Read more >spring-cloud/spring-cloud-contract - Gitter
RC2 here and I'm still getting org.springframework.beans.factory. ... to my deps @AutoConfigureWebTestClient still seems to be broken :-(.
Read more >A brand new website interface for an even better experience!
AutoConfigureWebTestClient ` breaks when SpringMVC is on the classpath.
Read more >Error creating bean with name 'securityConfig' defined in file
... in conjuction with other annotations for instance @AutoConfigureMockMvc or @AutoConfigureWebTestClient depending on which client to use.
Read more >Spring Boot Reference Guide
Mapping Error Pages outside of Spring MVC . ... Add Servlets, Filters, and Listeners by Using Classpath Scanning . ... break Spring Boot...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I solved the problem by excluding spring-webmvc
Now that the related issue is properly fixed (thanks @philwebb) I can give it another try at merging 282bd9f