类 MockMvcConfigurerAdapter
- java.lang.Object
- org.springframework.test.web.servlet.setup.MockMvcConfigurerAdapter
- 所有已实现的接口:
MockMvcConfigurer
public abstract class MockMvcConfigurerAdapter extends Object implements MockMvcConfigurer
An empty method implementation ofMockMvcConfigurer.- 从以下版本开始:
- 4.1
- 作者:
- Rossen Stoyanchev
构造器概要
构造器 构造器 说明 MockMvcConfigurerAdapter()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidafterConfigurerAdded(ConfigurableMockMvcBuilder<?> builder)Invoked immediately after aMockMvcConfigureris added viaConfigurableMockMvcBuilder.apply(org.springframework.test.web.servlet.setup.MockMvcConfigurer).RequestPostProcessorbeforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext cxt)Invoked just before the MockMvc instance is created.
构造器详细资料
MockMvcConfigurerAdapter
public MockMvcConfigurerAdapter()
方法详细资料
afterConfigurerAdded
public void afterConfigurerAdded(ConfigurableMockMvcBuilder<?> builder)
从接口复制的说明:MockMvcConfigurerInvoked immediately after aMockMvcConfigureris added viaConfigurableMockMvcBuilder.apply(org.springframework.test.web.servlet.setup.MockMvcConfigurer).- 指定者:
afterConfigurerAdded在接口中MockMvcConfigurer
beforeMockMvcCreated
public RequestPostProcessor beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext cxt)
从接口复制的说明:MockMvcConfigurerInvoked just before the MockMvc instance is created. Implementations may return a RequestPostProcessor to be applied to every request performed through the createdMockMvcinstance.- 指定者:
beforeMockMvcCreated在接口中MockMvcConfigurer