请访问:https://docs.spring.io/spring-framework/reference/6.1/testing/spring-mvc-test-framework/server-setup-options.html Spring Framework Testing MockMvc Setup Choices Static Imports Setup Features