
com.github.bingoohuang.springrest.boot.RestConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-rest-boot Show documentation
Show all versions of spring-rest-boot Show documentation
convenient spring rest server on spring boot
package com.github.bingoohuang.springrest.boot;
import com.github.bingoohuang.springrest.boot.interceptor.SignInterceptor;
import com.github.bingoohuang.springrest.boot.interceptor.ThreadLocalInterceptor;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@Configuration
@ComponentScan
public class RestConfiguration extends WebMvcConfigurerAdapter {
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(new SignInterceptor());
registry.addInterceptor(new ThreadLocalInterceptor());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy