LeoN il y a 5 ans
Parent
commit
fed4af565e

+ 1 - 1
src/main/java/com/mokamrp/privates/config/XxlSsoConfig.java

@@ -46,7 +46,7 @@ public class XxlSsoConfig implements DisposableBean {
         registration.setFilter(new XxlSsoWebVueFilter());
         registration.addInitParameter(Conf.SSO_SERVER, xxlSsoServer);
         registration.addInitParameter(Conf.SSO_LOGOUT_PATH, xxlSsoLogoutPath);
-        registration.addInitParameter(Conf.SSO_EXCLUDED_PATHS, "/healthy");
+        registration.addInitParameter(Conf.SSO_EXCLUDED_PATHS, xxlSsoExcludedPaths);
 
         return registration;
     }

+ 8 - 5
src/main/java/com/mokamrp/privates/controller/HealthyController.java

@@ -7,13 +7,16 @@ import org.springframework.web.bind.annotation.RestController;
 
 import java.util.HashMap;
 import java.util.Map;
-
+/**
+ * <p>
+ * 健康检测
+ * </p>
+ *
+ * @author leon
+ * @since 2021-05-11
+ */
 @RestController
 public class HealthyController {
-    /**
-     * 健康检测
-     * @return
-     */
     @GetMapping("/healthy")
     public Object Healthy(){
         Map<String,Object> res = new HashMap<String,Object>();

+ 1 - 1
src/main/resources/application-prod.properties

@@ -33,7 +33,7 @@ spring.servlet.multipart.max-file-size=10MB
 
 xxl.sso.server=http://sso.mokamrp.com:8888/sso
 xxl.sso.logout.path=/logout
-xxl-sso.excluded.paths=
+xxl-sso.excluded.paths=/healthy
 xxl.sso.redis.address=redis://xxl-sso:Jch9shshl@r-uf633f3f27aa2174pd.redis.rds.aliyuncs.com:6379/0
 
 menu.host=http://test.space-server.mokamrp.com/space/menu/getMenuInterface?sysCode=1006&userId=

+ 1 - 1
src/main/resources/application-test.properties

@@ -33,7 +33,7 @@ spring.servlet.multipart.max-file-size=10MB
 
 xxl.sso.server=http://test.sso.mokamrp.com/sso
 xxl.sso.logout.path=/logout
-xxl-sso.excluded.paths=
+xxl-sso.excluded.paths=/healthy
 xxl.sso.redis.address=redis://xxl-sso:Jch9shshl@r-uf633f3f27aa2174pd.redis.rds.aliyuncs.com:6379/0
 
 menu.host=http://space-server-in-svc/space/menu/getMenuInterface?sysCode=1006&userId=