Browse Source

Revert "Fix database lose data in standalone (#7556)" (#7604)

This reverts commit 82075a4476c16e1ab3806d914e571e0cf48bebc0.
wind 3 years ago
parent
commit
97aecb40a6

+ 1 - 1
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/aspect/AccessLogAnnotation.java

@@ -28,7 +28,7 @@ import java.lang.annotation.Target;
 @Documented
 @Documented
 public @interface AccessLogAnnotation {
 public @interface AccessLogAnnotation {
     // ignore request args
     // ignore request args
-    String[] ignoreRequestArgs() default {"loginUser"};
+    String[] ignoreRequestArgs() default {};
 
 
     boolean ignoreRequest() default false;
     boolean ignoreRequest() default false;
 
 

+ 1 - 4
dolphinscheduler-standalone-server/src/main/resources/application.yaml

@@ -31,12 +31,9 @@ spring:
       - taskDefinition
       - taskDefinition
     caffeine:
     caffeine:
       spec: maximumSize=100,expireAfterWrite=300s,recordStats
       spec: maximumSize=100,expireAfterWrite=300s,recordStats
-  sql:
-    init:
-      schema-locations: classpath:sql/dolphinscheduler_h2.sql
   datasource:
   datasource:
     driver-class-name: org.h2.Driver
     driver-class-name: org.h2.Driver
-    url: jdbc:h2:mem:dolphinscheduler;MODE=MySQL;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=true
+    url: jdbc:h2:mem:dolphinscheduler;MODE=MySQL;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=true;INIT=runscript from 'classpath:sql/dolphinscheduler_h2.sql'
     username: sa
     username: sa
     password: ""
     password: ""
     hikari:
     hikari: