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:10 UTC
[fineract-cn-office] 12/14: 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-office.git
commit 17b14665007d3f3155d65e90fd1937146271c7a0
Author: mgeiss <mg...@mifos.org>
AuthorDate: Wed Apr 26 17:57:19 2017 +0200
added path configurer to allow dots in url
---
.../java/io/mifos/office/rest/config/OfficeRestConfiguration.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/service/src/main/java/io/mifos/office/rest/config/OfficeRestConfiguration.java b/service/src/main/java/io/mifos/office/rest/config/OfficeRestConfiguration.java
index 5de5ebc..43c3ad0 100644
--- a/service/src/main/java/io/mifos/office/rest/config/OfficeRestConfiguration.java
+++ b/service/src/main/java/io/mifos/office/rest/config/OfficeRestConfiguration.java
@@ -31,6 +31,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
@@ -47,7 +49,7 @@ import org.springframework.context.annotation.Import;
@Import({
OfficeServiceConfiguration.class
})
-public class OfficeRestConfiguration {
+public class OfficeRestConfiguration extends WebMvcConfigurerAdapter {
public OfficeRestConfiguration() {
super();
@@ -58,4 +60,8 @@ public class OfficeRestConfiguration {
return LoggerFactory.getLogger(ServiceConstants.REST_LOGGER_NAME);
}
+ @Override
+ public void configurePathMatch(final PathMatchConfigurer configurer) {
+ configurer.setUseSuffixPatternMatch(Boolean.FALSE);
+ }
}
--
To stop receiving notification emails like this one, please contact
myrle@apache.org.