he2802 1 年之前
父節點
當前提交
75c9573c09

+ 4 - 4
zhongzheng-admin-data/src/main/resources/application-dev.yml

@@ -4,9 +4,9 @@ spring:
         type: com.alibaba.druid.pool.DruidDataSource
         driverClassName: com.mysql.cj.jdbc.Driver
         druid:
-            url: jdbc:mysql://192.168.1.222:3306/zz_edu_saas?rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true
+            url: jdbc:mysql://39.108.7.155:3306/zz_edu_data_dev?rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true
             username: root
-            password: zhongzheng2021
+            password: gdxy2023#@#zzkj
             # 初始连接数
             initialSize: 5
             # 最小连接池数量
@@ -49,13 +49,13 @@ spring:
     # redis 配置
     redis:
         # 地址
-        host: 192.168.1.222
+        host: 172.18.19.227
         # 端口,默认为6379
         port: 6379
         # 数据库索引
         database: 0
         # 密码
-        password: zhongzheng2021_redis
+        password: zhongzheng@@2024
         # 连接超时时间
         timeout: 10s
         lettuce:

+ 1 - 1
zhongzheng-admin-data/src/main/resources/application-pre.yml

@@ -49,7 +49,7 @@ spring:
     # redis 配置
     redis:
         # 地址
-        host: 192.168.1.222
+        host: 172.18.19.227
         # 端口,默认为6379
         port: 6379
         # 数据库索引

+ 1 - 0
zhongzheng-framework/src/main/java/com/zhongzheng/framework/config/SecurityConfig.java

@@ -158,6 +158,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
                 .antMatchers("/common/question/*").anonymous()
                 .antMatchers("/common/free/**").anonymous()
                 .antMatchers("/common/download**").anonymous()
+                .antMatchers("/course/handouts/**").anonymous()
                 .antMatchers("/common/download/resource**").anonymous()
                 .antMatchers("/common/user/data/download").anonymous()
                 .antMatchers("/grade/grade/listPeriod").anonymous()