title: how to add RequestMappingHandlerMapping and ResourceHandlers to a springMVC configuration class
body: <p>I have a spring MVC configuration class like this:</p>
  
  <pre><code>@Configuration 
  @EnableWebMvc
  public class WebConfig extends WebMvcConfigurerAdapter{
  @Bean
  public InternalResourceViewResolver configureInternalResourceViewResolver()   {
      InternalResourceViewResolver resolver = new InternalResourceViewResolver();
      resolver.setPrefix("/WEB-INF/views/");
      resolver.setSuffix(".jsp");
      return resolver;
  }
  
  @Override
  public void addResourceHandlers(ResourceHandlerRegistry registry) {
      registry.addResourceHandler("/resources/**").addResourceLocations(
              "/resources/");
  }
  
  
  }
  </code></pre>
  
  <p>I have an issue with maping URLs with a trailing slash,similar to <a href="https://stackoverflow.com/questions/11560916/spring-mvc-3-1-how-to-map-urls-with-a-trailing-slash">this</a>. so i want to add <code>RequestMappingHandlerMapping</code> class, but based on the instruction i get <a href="http://forum.spring.io/forum/spring-projects/web/111171-configuring-requestmappinghandlermapping-when-using-mvc-annotation-driven" rel="nofollow noreferrer">there</a> i need to <strong>extend</strong> <code>WebMvcConfigurationSupport</code>  class and implement <code>requestMappingHandlerMapping()</code> method, but unfortunatly i have already extended WebMvcConfigurationSupport  class for resource's mapping. Is there any way i could add requiest mapping handler to my class?</p>
  
  <p><strong>NOTE</strong>: i am using Spring version 3.1.1.RELEASE</p>