# SecurityMockmvCrequestPostProcessors

为了使用 Spring Security的RequestPostProcessor实现,确保使用以下静态导入:

Java

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

Kotlin

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

# 章节摘要

MockMVC设置嘲笑用户