🎨 Improving structure / format of the code.

This commit is contained in:
萌萌哒Sakura酱 committed 2019-04-20 17:41:00 +08:00
1 parent 5c11d79deb
commit 1964b7f7c9
7 files changed
+27 -56

No files matched your search

@@ -16,7 +16,7 @@
package com.alibaba.nacos;
import com.alibaba.nacos.console.config.ConfigConstant;
import com.alibaba.nacos.console.config.ConfigConstants;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
@@ -32,7 +32,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
public class PigxNacosApplication {
public static void main(String[] args) {
System.setProperty(ConfigConstant.STANDALONE_MODE, "true");
System.setProperty(ConfigConstants.STANDALONE_MODE, "true");
SpringApplication.run(PigxNacosApplication.class, args);
}
}
@@ -1,40 +0,0 @@
package com.alibaba.nacos.console.config;
/**
* @author lengleng
* @date 2019-04-19
* <p>
* 覆盖nacos 默认配置
*/
public interface ConfigConstant {
/**
* The System property name of Standalone mode
*/
String STANDALONE_MODE = "nacos.standalone";
/**
* 环境变量
*/
String USER_HOME = "user.home";
/**
* nacos 日志路径配置
*/
String NACOS_LOGS_PATH = "nacos.logs.path";
/**
* nacos 家目录
*/
String NACOS_HOME = "nacos.home";
/**
* tomcat 目录
*/
String TOMCAT_DIR = "server.tomcat.basedir";
/**
* tomcat 日志配置
*/
String TOMCAT_ACCESS_LOG = "server.tomcat.accesslog.enabled";
}
@@ -0,0 +1,15 @@
package com.alibaba.nacos.console.config;
/**
* @author lengleng
* @date 2019-04-19
* <p>
* 覆盖nacos 默认配置
*/
public interface ConfigConstants {
/**
* The System property name of Standalone mode
*/
String STANDALONE_MODE = "nacos.standalone";
}