For the latest stable version, please use Spring Security 6.4.1!

SecurityMockMvcRequestPostProcessors

In order to use Spring Security’s RequestPostProcessor implementations ensure the following static import is used:

  • Java

  • Kotlin

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