Skip to content
Permalink
Browse files
Merge pull request #4 from mgeiss/develop
added path configurer to allow dots in url
  • Loading branch information
mgeiss committed Apr 26, 2017
2 parents 29d279f + 17b1466 commit a87f8258758af2f4046ce6e5ee2c9d0303377ba0
Showing 1 changed file with 7 additions and 1 deletion.
@@ -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
@@ -47,7 +49,7 @@
@Import({
OfficeServiceConfiguration.class
})
public class OfficeRestConfiguration {
public class OfficeRestConfiguration extends WebMvcConfigurerAdapter {

public OfficeRestConfiguration() {
super();
@@ -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 a87f825

Please sign in to comment.