File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
spring-boot-project/spring-boot-docs/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -6657,6 +6657,10 @@ that the driver exits after each test and that a new instance is injected. If yo
6657
6657
not want this behavior, you can add `@Scope("singleton")` to your `WebDriver` `@Bean`
6658
6658
definition.
6659
6659
6660
+ WARNING: The `webDriver` scope created by Spring Boot will replace any user defined scope
6661
+ of the same name. If you define your own `webDriver` scope you may find it stops working
6662
+ when you use `@WebMvcTest`.
6663
+
6660
6664
TIP: Sometimes writing Spring MVC tests is not enough; Spring Boot can help you run
6661
6665
<<boot-features-testing-spring-boot-applications-testing-with-running-server,
6662
6666
full end-to-end tests with an actual server>>.
You can’t perform that action at this time.
0 commit comments