For the latest stable version, please use Spring Security 6.4.1!spring-doc.cn

SecurityMockMvcRequestPostProcessors

To use Spring Security’s RequestPostProcessor implementations, use the following static import:spring-doc.cn

import static org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.*;
import org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.*