This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Framework 6.1.13!spring-doc.cn

This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Framework 6.1.13!spring-doc.cn

When using MockMvc directly to perform requests, you’ll need static imports for:spring-doc.cn

An easy way to remember that is search for MockMvc*. If using Eclipse be sure to also add the above as “favorite static members” in the Eclipse preferences.spring-doc.cn

When using MockMvc through the WebTestClient you do not need static imports. The WebTestClient provides a fluent API without static imports.spring-doc.cn