Skip to content
Permalink
Browse files
Merge pull request #6 from mgeiss/develop
added path configurer to allow dots in url
  • Loading branch information
mgeiss committed Apr 26, 2017
2 parents 921cd9c + b663819 commit d4ee760bf3d8c915d4140c8d15fceaaf9c29b1b3
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 d4ee760

Please sign in to comment.