org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport Java Examples
The following examples show how to use
org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RxJavaMvcAutoConfiguration.java From Java-9-Spring-Webflux with Apache License 2.0 | 5 votes |
@Bean public WebMvcConfigurationSupport rxJavaWebMvcConfiguration() { return new WebMvcConfigurationSupport(){ @Override protected void addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers) { super.addReturnValueHandlers(returnValueHandlers); returnValueHandlers.addAll(handlers); } }; }
Example #2
Source File: TraceeMvcAutoConfigurationIT.java From tracee with BSD 3-Clause "New" or "Revised" License | 5 votes |
@SuppressWarnings("unchecked") @Test public void testInterceptorIsConfigured() { final Object configurerAdapter = context.getBean(TraceeSpringMvcConfiguration.TRACEE_WEBMVCCONFIGURERADAPTER_INTERNAL); assertNotNull(configurerAdapter); final WebMvcConfigurationSupport webmvc = context.getBean(WebMvcConfigurationSupport.class); final List<Object> listeners = FieldAccessUtil.getFieldVal(webmvc, "interceptors"); Assert.assertThat(listeners, Matchers.hasItem(Matchers.instanceOf(TraceeInterceptor.class))); }