启动网上拉取的代码metersphere-master,为什么总报路径错误(为null)呢?

问题遇到的现象和发生背景
启动从网上拉下来的开源代码metersphere-master,领导和我说需要jmeter和kafka配合使用,其余领导也不知道了
运行结果及报错内容
Logging system failed to initialize using configuration from 'null'
java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.joran.action.PropertyAction - Could not find properties file [/opt/metersphere/conf/metersphere.properties].
at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:179)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.reinitialize(LogbackLoggingSystem.java:232)
at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:73)
at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:60)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:132)
at org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:313)
at org.springframework.boot.context.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:282)

我的解答思路和尝试过的方法

debugger是在这里报错

img

  • Could not find properties file [/opt/metersphere/conf/metersphere.properties].
    这个文件,有吗

没有这个配置文件,先看源码上这块应该有说明吧.不行就重写这个方法,然后把这个文件本地项目下新建一个.

需要更改源码的base.properties、logback.xml、generatorConfig.xml中指定的metersphere.properties文件目录
以及在朱启动程序中更改metersphere.properties文件的目录