public class SnippetConfigurer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SNIPPET_ENCODING
The default encoding for documentation snippets
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterConfigurerAdded(ConfigurableMockMvcBuilder<?> builder) |
PARENT |
and()
Returns the configurer's parent
|
RequestPostProcessor |
beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder,
WebApplicationContext context) |
SnippetConfigurer |
withEncoding(String encoding)
Configures any documentation snippets to be written using the given
encoding. |
public static final String DEFAULT_SNIPPET_ENCODING
withEncoding(String),
Constant Field Valuespublic SnippetConfigurer withEncoding(String encoding)
encoding. The default is UTF-8.encoding - The encodingthispublic PARENT and()
NestedConfigurerand in interface NestedConfigurer<PARENT extends MockMvcConfigurer>public void afterConfigurerAdded(ConfigurableMockMvcBuilder<?> builder)
afterConfigurerAdded in interface MockMvcConfigurerpublic RequestPostProcessor beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext context)
beforeMockMvcCreated in interface MockMvcConfigurer