srain2010 opened a new issue, #10852:
URL: https://github.com/apache/dubbo/issues/10852
dubbo2.7.7main方法方式启动
-Ddubbo.application.name设置的参数值会被dubbo.properties中的值覆盖
-Ddubbo.provider.parameters.pTag=v1 -Ddubbo.consumer.parameters.cTag=v1
自定义参数设置无效
--启动代码如下
public class DrpCenterMain {
private static final Logger logger =
LoggerFactory.getLogger(LogConstant.STD_OUT);
public static void main(String[] args) {
@SuppressWarnings("resource")
ClassPathXmlApplicationContext context = new
ClassPathXmlApplicationContext("classpath*:spring-drp-*.xml");
context.start();
logger.info("spring 加载成功");
synchronized (DrpCenterMain.class) {
while (true) {
try {
DrpCenterMain.class.wait();
} catch (Throwable e) {
logger.error("error", e);
}
}
}
}
}
--启动脚本如下
nohup java -Ddubbo.application.name -Ddubbo.provider.parameters.pTag=v1
-Ddubbo.consumer.parameters.cTag=v1 com.ruhnn.drp.main.DrpCenterMain >> std.log
2>&1 &
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]