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

com.hyf.hotrefresh.adapter.spring.config.MappedInterceptorEscapeConfiguration Maven / Gradle / Ivy

There is a newer version: 1.2.5
Show newest version
package com.hyf.hotrefresh.adapter.spring.config;

import com.hyf.hotrefresh.adapter.spring.properties.HotRefreshProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.web.servlet.handler.MappedInterceptor;

@ConditionalOnProperty(prefix = HotRefreshProperties.PREFIX, name = "interceptor-escape.enabled", matchIfMissing = true)
@ConditionalOnClass(MappedInterceptor.class)
public class MappedInterceptorEscapeConfiguration {

    @Bean
    public MappedInterceptorEscapeHelper mappedInterceptorEscapeHelper() {
        return new MappedInterceptorEscapeHelper();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy