Example usage for org.springframework.web.servlet.config.annotation PathMatchConfigurer setUseRegisteredSuffixPatternMatch

List of usage examples for org.springframework.web.servlet.config.annotation PathMatchConfigurer setUseRegisteredSuffixPatternMatch

Introduction

In this page you can find the example usage for org.springframework.web.servlet.config.annotation PathMatchConfigurer setUseRegisteredSuffixPatternMatch.

Prototype

public PathMatchConfigurer setUseRegisteredSuffixPatternMatch(Boolean registeredSuffixPatternMatch) 

Source Link

Document

Whether suffix pattern matching should work only against path extensions explicitly registered when you WebMvcConfigurer#configureContentNegotiation configure content negotiation .

Usage

From source file:com.todo.backend.config.WebConfiguration.java

@Override
public void configurePathMatch(PathMatchConfigurer matcher) {
    matcher.setUseRegisteredSuffixPatternMatch(true);
}

From source file:com.netflix.genie.web.configs.MvcConfig.java

/**
 * {@inheritDoc}/*  www .  ja v a 2 s .com*/
 * <p>
 * Turn off {@literal .} recognition in paths. Needed due to Job id's in paths potentially having '.' as character.
 *
 * @see <a href="http://stackoverflow.com/a/23938850">Stack Overflow Issue Answer From Dave Syer</a>
 */
@Override
public void configurePathMatch(final PathMatchConfigurer configurer) {
    configurer.setUseRegisteredSuffixPatternMatch(true);
}