提交 2f923eb7 编写于 作者: 公众号-WU双's avatar 公众号-WU双

#31 Configuration optimization-add configuration log

上级 f9a168db
......@@ -81,7 +81,7 @@ public class Bootstrap {
private static void initConfig(String configFile) throws IOException {
InputStream fileInputStream = Bootstrap.class.getResourceAsStream(configFile);
ScalingConfiguration scalingConfiguration = JSON.parseObject(fileInputStream, ScalingConfiguration.class);
System.out.println(JSON.toJSONString(scalingConfiguration));
log.info(JSON.toJSONString(scalingConfiguration));
ScalingContext.getInstance().init(scalingConfiguration.getRuleConfiguration(), scalingConfiguration.getServerConfiguration());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册