From 0d4455951f0c8f14e5aadf5e290fd3c41759a83e Mon Sep 17 00:00:00 2001 From: lbw Date: Mon, 18 Jan 2021 09:56:46 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20Fixing=20a=20bug.=20#I2DM0B=20PigNacosA?= =?UTF-8?q?pplication=EF=BC=8C=E5=90=AF=E5=8A=A8=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=EF=BC=9A=20[application.properties]=20does=20not=20exist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/alibaba/nacos/PigNacosApplication.java | 1 + .../main/java/com/alibaba/nacos/config/ConfigConstants.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/pig-register/src/main/java/com/alibaba/nacos/PigNacosApplication.java b/pig-register/src/main/java/com/alibaba/nacos/PigNacosApplication.java index 0916429f..1813ca1f 100755 --- a/pig-register/src/main/java/com/alibaba/nacos/PigNacosApplication.java +++ b/pig-register/src/main/java/com/alibaba/nacos/PigNacosApplication.java @@ -33,6 +33,7 @@ public class PigNacosApplication { public static void main(String[] args) { System.setProperty(ConfigConstants.STANDALONE_MODE, "true"); System.setProperty(ConfigConstants.AUTH_ENABLED, "false"); + System.setProperty(ConfigConstants.LOG_BASEDIR, "logs"); SpringApplication.run(PigNacosApplication.class, args); } diff --git a/pig-register/src/main/java/com/alibaba/nacos/config/ConfigConstants.java b/pig-register/src/main/java/com/alibaba/nacos/config/ConfigConstants.java index 33f509f9..c2d31e55 100755 --- a/pig-register/src/main/java/com/alibaba/nacos/config/ConfigConstants.java +++ b/pig-register/src/main/java/com/alibaba/nacos/config/ConfigConstants.java @@ -35,4 +35,9 @@ public interface ConfigConstants { */ String AUTH_ENABLED = "nacos.core.auth.enabled"; + /** + * 日志目录 + */ + String LOG_BASEDIR = "server.tomcat.basedir"; + }