Skip to content
Permalink
Browse files
added path configurer to allow dots in url
  • Loading branch information
mgeiss committed Apr 26, 2017
1 parent 921cd9c commit b663819d7db1d2a5647797cbebfb0a85d831079b
Showing 1 changed file with 8 additions and 1 deletion.
@@ -34,6 +34,8 @@
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import java.math.BigInteger;

@@ -52,7 +54,7 @@
@EnableCassandra
@EnableServiceException
@EnableApplicationName
public class ProvisionerServiceConfig {
public class ProvisionerServiceConfig extends WebMvcConfigurerAdapter {

public ProvisionerServiceConfig() {
super();
@@ -79,4 +81,9 @@ public TokenProvider tokenProvider(final Environment environment,
public ApiFactory apiFactory(@Qualifier(ProvisionerConstants.LOGGER_NAME) final Logger logger) {
return new ApiFactory(logger);
}

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

0 comments on commit b663819

Please sign in to comment.