import org.springframework.context.annotation.Bean;
import org.springframework.core.Ordered;
import org.springframework.core.env.Environment;
-import org.springframework.web.servlet.handler.SimpleUrlHandlerMapping;
@SpringBootApplication
public class Application
{
@Bean
- public SimpleUrlHandlerMapping proxiedHandlerMapping(
+ public RegexUrlHandlerMapping proxiedHandlerMapping(
ProxyHttpRequestHandler handler
)
{
-/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
package de.juplo.thymeproxy;
+import org.springframework.util.PathMatcher;
+import org.springframework.web.servlet.handler.SimpleUrlHandlerMapping;
+
+
+
/**
*
* @author kai
*/
-public class RegexUrlHandlerMapping
+public class RegexUrlHandlerMapping extends SimpleUrlHandlerMapping
{
-
+ private final RegexPathMatcher matcher = new RegexPathMatcher();
+
+
+ @Override
+ public PathMatcher getPathMatcher()
+ {
+ return matcher;
+ }
}