Browse Source

修改默认配置,及允许指定用默认配置修改数据配置

suntg 7 years ago
parent
commit
0c1d3ec2fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/uas/erp/schedular/init/DefaultInitializer.java

+ 1 - 1
src/main/java/com/uas/erp/schedular/init/DefaultInitializer.java

@@ -37,7 +37,7 @@ public class DefaultInitializer implements CommandLineRunner {
                         for (String key : resetDefaultKeys) {
                             // 需要用默认配置重置数据库配置,修改数据库配置内容
                             if (key.equals(setting.getKey())) {
-                                oldOne.setKey(setting.getKey());
+                                oldOne.setValue(setting.getValue());
                                 settingService.save(oldOne);
                             }
                         }