Skip to content
Permalink
Browse files
added path configurer to allow dots in url
  • Loading branch information
mgeiss committed Apr 26, 2017
1 parent a93cee0 commit 960bd986b50e9359a437eaa984b64ea7a1e41490
Showing 1 changed file with 8 additions and 1 deletion.
@@ -30,6 +30,8 @@
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
* @author Myrle Krantz
@@ -54,7 +56,7 @@
@EnableJpaRepositories({
"io.mifos.rhythm.service.internal.repository"
})
public class RhythmConfiguration {
public class RhythmConfiguration extends WebMvcConfigurerAdapter {

public RhythmConfiguration() {
super();
@@ -64,4 +66,9 @@ public RhythmConfiguration() {
public Logger logger() {
return LoggerFactory.getLogger(ServiceConstants.LOGGER_NAME);
}

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

0 comments on commit 960bd98

Please sign in to comment.