🐛 Fixing a bug. #I2DM0B PigNacosApplication,启动失败: [application.properties] does not exist

This commit is contained in:
lbw 2021-01-18 09:56:46 +08:00
parent 4575ab619a
commit 0d4455951f
2 changed files with 6 additions and 0 deletions

View File

@ -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);
}

View File

@ -35,4 +35,9 @@ public interface ConfigConstants {
*/
String AUTH_ENABLED = "nacos.core.auth.enabled";
/**
* 日志目录
*/
String LOG_BASEDIR = "server.tomcat.basedir";
}