|
|
@@ -9,6 +9,7 @@ import com.uas.console.donate.web.filter.SSOInterceptor;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
+import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
|
|
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
|
|
|
|
|
@@ -21,6 +22,7 @@ import java.util.Properties;
|
|
|
* @author hejq
|
|
|
*/
|
|
|
@Configuration
|
|
|
+@EnableWebMvc
|
|
|
public class SSOConfiguration extends WebMvcConfigurerAdapter {
|
|
|
|
|
|
@Autowired
|
|
|
@@ -29,10 +31,10 @@ public class SSOConfiguration extends WebMvcConfigurerAdapter {
|
|
|
@Override
|
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
|
/**
|
|
|
- * 拦截器配置
|
|
|
+ * SSO过滤
|
|
|
*/
|
|
|
- registry.addInterceptor(ssoInterceptor).addPathPatterns("/**").addPathPatterns("/user/**");
|
|
|
-// excludePathPatterns("/WEB-INF/**","/**/static/**", "/login/**", "/logout/**");
|
|
|
+ registry.addInterceptor(ssoInterceptor).addPathPatterns("/**").
|
|
|
+ excludePathPatterns("/WEB-INF/**","/**/static/**", "/login/**", "/logout/**");
|
|
|
}
|
|
|
|
|
|
@Bean
|