Code example for WebMvcConfigurationSupport

Methods: requestMappingHandlerMapping

0
@Configuration 
public class WebConfiguration extends WebMvcConfigurationSupport { 
 
  @Bean 
  public RequestMappingHandlerMapping requestMappingHandlerMapping() { 
    RequestMappingHandlerMapping handlerMapping = super.requestMappingHandlerMapping(); 
    handlerMapping.setAlwaysUseFullPath(true); 
    return handlerMapping; 
  } 
}