fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From my...@apache.org
Subject [fineract-cn-customer] 09/28: added path configurer to allow dots in url
Date Mon, 22 Jan 2018 15:24:46 GMT
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 <mgeiss@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.

Mime
View raw message