晚
启动路径:broker模块下的cn.wildfirechat.server.Server
我运行了这个Server,控制台报错,下面显示我的“wildfirechat.conf”不存在,但是我现在还没有对这个项目进行修改,是项目中少了这个文件吗?下面是控制台报错的内容:
[11:45:18:942] [INFO] - io.moquette.server.Server.defaultConfig(Server.java:159) - Starting Moquette server. Configuration file path=D:\wildfirechat\config\wildfirechat.conf
[11:45:18:950] [INFO] - io.moquette.server.config.ResourceLoaderConfig.<init>(ResourceLoaderConfig.java:40) - Loading configuration. ResourceLoader = file, configName = null.
[11:45:18:950] [INFO] - io.moquette.server.config.FileResourceLoader.loadResource(FileResourceLoader.java:65) - Loading file. Path = D:\wildfirechat\config\wildfirechat.conf.
[11:45:18:951] [ERROR] - io.moquette.server.config.FileResourceLoader.loadResource(FileResourceLoader.java:73) - The file does not exist. Path = D:\wildfirechat\config\wildfirechat.conf.
[11:45:18:953] [ERROR] - io.moquette.server.config.ResourceLoaderConfig.<init>(ResourceLoaderConfig.java:56) - The resource loader returned no configuration reader. ResourceLoader = file, configName = null.
Exception in thread "main" java.lang.IllegalArgumentException: Can't locate file "null"
at io.moquette.server.config.ResourceLoaderConfig.<init>(ResourceLoaderConfig.java:60)
at io.moquette.server.config.ResourceLoaderConfig.<init>(ResourceLoaderConfig.java:36)
at io.moquette.server.Server.defaultConfig(Server.java:161)
at io.moquette.server.Server.start(Server.java:114)
at cn.wildfirechat.server.Server.main(Server.java:15)