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

@SuppressWarnings("WeakerAccess")
@Configuration
@@ -51,7 +53,7 @@
@EnableJpaRepositories({
"io.mifos.template.service.internal.repository"
})
public class TemplateConfiguration {
public class TemplateConfiguration extends WebMvcConfigurerAdapter {

public TemplateConfiguration() {
super();
@@ -61,4 +63,9 @@ public TemplateConfiguration() {
public Logger logger() {
return LoggerFactory.getLogger(ServiceConstants.LOGGER_NAME);
}

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

0 comments on commit d9745aa

Please sign in to comment.