mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 20:49:00 +08:00
🐳 Work about Docker. 修改host pigx-register
This commit is contained in:
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";
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user