Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
added path configurer to allow dots in url
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeiss committed Apr 26, 2017
1 parent 29d279f commit 17b1466
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
@EnableAutoConfiguration
Expand All @@ -47,7 +49,7 @@
@Import({
OfficeServiceConfiguration.class
})
public class OfficeRestConfiguration {
public class OfficeRestConfiguration extends WebMvcConfigurerAdapter {

public OfficeRestConfiguration() {
super();
Expand All @@ -58,4 +60,8 @@ public Logger logger() {
return LoggerFactory.getLogger(ServiceConstants.REST_LOGGER_NAME);
}

@Override
public void configurePathMatch(final PathMatchConfigurer configurer) {
configurer.setUseSuffixPatternMatch(Boolean.FALSE);
}
}

0 comments on commit 17b1466

Please sign in to comment.