You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by my...@apache.org on 2018/01/22 15:24:46 UTC
[fineract-cn-customer] 09/28: added path configurer to allow dots
in url
This is an automated email from the ASF dual-hosted git repository.
myrle pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract-cn-customer.git
commit dd596a92671d8df54a67ae1ff6587b0417a910d3
Author: mgeiss <mg...@mifos.org>
AuthorDate: Wed Apr 26 17:35:41 2017 +0200
added path configurer to allow dots in url
---
.../customer/service/rest/config/CustomerRestConfiguration.java | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/service/src/main/java/io/mifos/customer/service/rest/config/CustomerRestConfiguration.java b/service/src/main/java/io/mifos/customer/service/rest/config/CustomerRestConfiguration.java
index 528dea6..d0cf473 100644
--- a/service/src/main/java/io/mifos/customer/service/rest/config/CustomerRestConfiguration.java
+++ b/service/src/main/java/io/mifos/customer/service/rest/config/CustomerRestConfiguration.java
@@ -34,6 +34,8 @@ import org.springframework.context.annotation.Bean;
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
@@ -52,7 +54,7 @@ import org.springframework.context.annotation.Import;
CatalogRestConfiguration.class,
CustomerServiceConfiguration.class
})
-public class CustomerRestConfiguration {
+public class CustomerRestConfiguration extends WebMvcConfigurerAdapter {
public CustomerRestConfiguration() {
super();
@@ -62,4 +64,9 @@ public class CustomerRestConfiguration {
public Logger logger(final ApplicationName applicationName) {
return LoggerFactory.getLogger(applicationName.getServiceName());
}
+
+ @Override
+ public void configurePathMatch(final PathMatchConfigurer configurer) {
+ configurer.setUseSuffixPatternMatch(Boolean.FALSE);
+ }
}
--
To stop receiving notification emails like this one, please contact
myrle@apache.org.