SecurityMockMvcRequestPostProcessors

要使用 Spring Security 的 RequestPostProcessor 实现,请使用以下静态导入:

  • Java

  • Kotlin

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