|
@@ -9,6 +9,9 @@ import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @author xuxueli 2018-11-15
|
|
* @author xuxueli 2018-11-15
|
|
|
*/
|
|
*/
|
|
@@ -29,7 +32,7 @@ public class XxlSsoConfig implements DisposableBean {
|
|
|
private String xxlSsoRedisAddress;
|
|
private String xxlSsoRedisAddress;
|
|
|
|
|
|
|
|
@Bean
|
|
@Bean
|
|
|
- public FilterRegistrationBean xxlSsoFilterRegistration() {
|
|
|
|
|
|
|
+ public FilterRegistrationBean exxlSsoFilterRgistration() {
|
|
|
|
|
|
|
|
// xxl-sso, redis init
|
|
// xxl-sso, redis init
|
|
|
JedisUtil.init(xxlSsoRedisAddress);
|
|
JedisUtil.init(xxlSsoRedisAddress);
|
|
@@ -43,7 +46,7 @@ public class XxlSsoConfig implements DisposableBean {
|
|
|
registration.setFilter(new XxlSsoWebVueFilter());
|
|
registration.setFilter(new XxlSsoWebVueFilter());
|
|
|
registration.addInitParameter(Conf.SSO_SERVER, xxlSsoServer);
|
|
registration.addInitParameter(Conf.SSO_SERVER, xxlSsoServer);
|
|
|
registration.addInitParameter(Conf.SSO_LOGOUT_PATH, xxlSsoLogoutPath);
|
|
registration.addInitParameter(Conf.SSO_LOGOUT_PATH, xxlSsoLogoutPath);
|
|
|
- registration.addInitParameter(Conf.SSO_EXCLUDED_PATHS, xxlSsoExcludedPaths);
|
|
|
|
|
|
|
+ registration.addInitParameter(Conf.SSO_EXCLUDED_PATHS, "/healthy");
|
|
|
|
|
|
|
|
return registration;
|
|
return registration;
|
|
|
}
|
|
}
|