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

cicada.authorization.InterceptorConfig Maven / Gradle / Ivy

There is a newer version: 1.0.6.6
Show newest version
package cicada.authorization;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class InterceptorConfig extends WebMvcConfigurerAdapter
{
	@Override
	public void addInterceptors(InterceptorRegistry registry)
	{
		AuthorizationInterceptor interceptor=new AuthorizationInterceptor();
		registry.addInterceptor(interceptor).addPathPatterns("/**");
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy