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

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

Introduction

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

Prototype

public PathMatchConfigurer setUseTrailingSlashMatch(Boolean trailingSlashMatch) 

Source Link

Document

Whether to match to URLs irrespective of the presence of a trailing slash.

Usage

From source file:it.reply.orchestrator.config.WebMvcConfig.java

@Override
public void configurePathMatch(PathMatchConfigurer configurer) {
    configurer.setUseSuffixPatternMatch(false);
    configurer.setUseTrailingSlashMatch(true);
    super.configurePathMatch(configurer);
}

From source file:ru.mystamps.web.config.MvcConfig.java

@Override
public void configurePathMatch(PathMatchConfigurer configurer) {
    // If enabled a method mapped to "/users" also matches to "/users/"
    configurer.setUseTrailingSlashMatch(false);
    // If enabled a method mapped to "/users" also matches to "/users.*"
    configurer.setUseSuffixPatternMatch(false);
}