From 7f46b3194ac2bde3e09b9b941c19bd4b7df18543 Mon Sep 17 00:00:00 2001 From: Redkale <8730487+redkale@users.noreply.github.com> Date: Mon, 14 Dec 2020 13:56:20 +0800 Subject: [PATCH] =?UTF-8?q?Application=20=E5=88=A0=E9=99=A4=20restoreConfi?= =?UTF-8?q?g=20=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/org/redkale/boot/Application.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/org/redkale/boot/Application.java b/src/org/redkale/boot/Application.java index d622fc811..232e99ca2 100644 --- a/src/org/redkale/boot/Application.java +++ b/src/org/redkale/boot/Application.java @@ -741,17 +741,6 @@ public final class Application { //------------------------------------------------------------------------ } - public void restoreConfig() throws IOException { - if (!"file".equals(this.confPath.getScheme())) return; - synchronized (this) { - File confFile = new File(this.confPath.toString(), "application.xml"); - confFile.renameTo(new File(this.confPath.toString(), "application_" + String.format("%1$tY%1$tm%1$td%1$tH%1$tM%1$tS", System.currentTimeMillis()) + ".xml")); - final PrintStream ps = new PrintStream(new FileOutputStream(confFile)); - ps.append(config.toXML("application")); - ps.close(); - } - } - private void startSelfServer() throws Exception { final Application application = this; new Thread() {