com.icthh.xm.commons.timeline.config.TimelineConfig Maven / Gradle / Ivy
package com.icthh.xm.commons.timeline.config;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
@RequiredArgsConstructor
@ConditionalOnProperty("application.timelines-enabled")
public class TimelineConfig implements WebMvcConfigurer {
private final TimelineInterceptor timelineInterceptor;
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(timelineInterceptor);
}
@Override
public void configurePathMatch(PathMatchConfigurer configurer) {
configurer.setUseSuffixPatternMatch(false);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy