🐳 Work about Docker. 修改host pigx-register

This commit is contained in:
冷冷 committed 2019-04-20 20:02:46 +08:00
1 parent c3be06ee32
commit f8516d78ac
2 files changed
+12

No files matched your search

@@ -32,6 +32,8 @@ import org.springframework.scheduling.annotation.EnableScheduling;
public class PigxNacosApplication {
public static void main(String[] args) {
System.setProperty(ConfigConstants.TOMCAT_DIR, "logs");
System.setProperty(ConfigConstants.TOMCAT_ACCESS_LOG, "false");
System.setProperty(ConfigConstants.STANDALONE_MODE, "true");
SpringApplication.run(PigxNacosApplication.class, args);
}
@@ -12,4 +12,14 @@ public interface ConfigConstants {
*/
String STANDALONE_MODE = "nacos.standalone";
/**
* tomcat 目录
*/
String TOMCAT_DIR = "server.tomcat.basedir";
/**
* tomcat 日志配置
*/
String TOMCAT_ACCESS_LOG = "server.tomcat.accesslog.enabled";
}