You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by aw...@apache.org on 2019/09/03 07:25:30 UTC
[fineract-cn-group] 04/46: added path configurer to allow dots in
url
This is an automated email from the ASF dual-hosted git repository.
awasum pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract-cn-group.git
commit c8f9390c7c34def09776a6765310d8188e7891a2
Author: mgeiss <mg...@mifos.org>
AuthorDate: Wed Apr 26 18:19:48 2017 +0200
added path configurer to allow dots in url
---
.../src/main/java/io/mifos/group/service/GroupConfiguration.java | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/service/src/main/java/io/mifos/group/service/GroupConfiguration.java b/service/src/main/java/io/mifos/group/service/GroupConfiguration.java
index 0ecceeb..e7d2300 100644
--- a/service/src/main/java/io/mifos/group/service/GroupConfiguration.java
+++ b/service/src/main/java/io/mifos/group/service/GroupConfiguration.java
@@ -30,6 +30,8 @@ import org.springframework.context.annotation.Bean;
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 @@ import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@EnableJpaRepositories({
"io.mifos.group.service.internal.repository"
})
-public class GroupConfiguration {
+public class GroupConfiguration extends WebMvcConfigurerAdapter {
public GroupConfiguration() {
super();
@@ -61,4 +63,9 @@ public class GroupConfiguration {
public Logger logger() {
return LoggerFactory.getLogger(ServiceConstants.LOGGER_NAME);
}
+
+ @Override
+ public void configurePathMatch(final PathMatchConfigurer configurer) {
+ configurer.setUseSuffixPatternMatch(Boolean.FALSE);
+ }
}