Browse Source

优化脚手架启动配置@20210326:1)设置访问portal的请求不做session验证;2)脚手架开发态连接迅捷单节点redis,测试态连接迅捷集群redis。

huangbo 4 years ago
parent
commit
91dec1d58e

+ 1 - 1
ipu-rest-scaffold/src/main/java/com/ai/ipu/server/RestScaffoldStart.java

@ -52,7 +52,7 @@ public class RestScaffoldStart {
52 52
        // 注册Session校验拦截器
53 53
        InterceptorManager.registerHandlerInterceptor(pathPattern, new SessionInterceptor());
54 54
        // 排除Session校验拦截器的拦截请求
55
        String[] excludePaths = new String[]{"/login"};
55
        String[] excludePaths = new String[]{"/login","/portal","/portal/","/portal/home"};
56 56
        InterceptorManager.registerExcludePath(pathPattern, excludePaths);
57 57
    }
58 58
}

+ 3 - 2
ipu-rest-scaffold/src/main/resources/dev/application.yml

@ -16,8 +16,9 @@ spring:
16 16
    store-type: redis
17 17
  #redis集群和连接池相关配置
18 18
  redis:
19
    host: 127.0.0.1
20
    port: 6379
19
    host: 47.105.160.21
20
    port: 7111
21
    password: ipu
21 22
    pool:
22 23
      max-active: 8
23 24
      max-idle: 8

+ 1 - 1
ipu-rest-scaffold/src/main/resources/test/application.yml

@ -27,7 +27,7 @@ spring:
27 27
  redis:
28 28
    cluster:
29 29
      max-redirects: 3
30
      nodes: 123.57.35.51:11001,123.57.35.51:11002,123.57.35.51:11003,123.57.35.51:11004,123.57.35.51:11005,123.57.35.51:11006
30
      nodes: 47.105.160.21:7101,47.105.160.21:7102,47.105.160.21:7103
31 31
      timeout: 5
32 32
    password: ipu
33 33
    pool: