mirror of https://gitee.com/maxjhandsome/pig
🐛 Fixing a bug. #I2DM0B PigNacosApplication,启动失败: [application.properties] does not exist
This commit is contained in:
parent
4575ab619a
commit
0d4455951f
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -35,4 +35,9 @@ public interface ConfigConstants {
|
|||
*/
|
||||
String AUTH_ENABLED = "nacos.core.auth.enabled";
|
||||
|
||||
/**
|
||||
* 日志目录
|
||||
*/
|
||||
String LOG_BASEDIR = "server.tomcat.basedir";
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue