优化野火IM服务安装目录

This commit is contained in:
heavyrian2012
2022-10-24 09:53:44 +08:00
parent 6e570c74ae
commit acd21faa9c
12 changed files with 230 additions and 128 deletions
@@ -378,7 +378,7 @@ public class Server {
LOG.info("Configuring embedded Hazelcast instance");
serverIp = getServerIp(config);
String hzConfigPath = "config/hazelcast.xml";
String hzConfigPath = System.getProperty("hazelcast.configuration", "config/hazelcast.xml");
if (hzConfigPath != null) {
boolean isHzConfigOnClasspath = this.getClass().getClassLoader().getResource(hzConfigPath) != null;
Config hzconfig = isHzConfigOnClasspath