All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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.WebMvcConfigurerAdapter;

@Configuration
@RequiredArgsConstructor
@ConditionalOnProperty("application.timelines-enabled")
public class TimelineConfig extends WebMvcConfigurerAdapter {

    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