JAVA-5190: Fix spring-boot-runtime config and tests

This commit is contained in:
Krzysztof Woyke
2021-04-19 22:24:05 +02:00
parent 69f3668e83
commit 39828a0e43
3 changed files with 23 additions and 83 deletions

View File

@@ -2,6 +2,8 @@ package com.baeldung.web.log.config;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRegistration;
import org.springframework.web.context.ContextLoaderListener;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;

View File

@@ -14,6 +14,6 @@ public class TaxiFareMVCConfig implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(taxiFareRequestInterceptor).addPathPatterns("/**/taxifare/**/");
registry.addInterceptor(taxiFareRequestInterceptor).addPathPatterns("/taxifare/*/");
}
}