修改withoutNetty的bug

This commit is contained in:
rewerma
2018-06-12 09:00:55 +08:00
parent 9b7d62717e
commit e4cde2f6a1
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ public class CanalServerStarter {
Properties properties = new Properties();
if (conf.startsWith(CLASSPATH_URL_PREFIX)) {
conf = StringUtils.substringAfter(conf, CLASSPATH_URL_PREFIX);
properties.load(com.alibaba.otter.canal.deployer.CanalLauncher.class.getClassLoader().getResourceAsStream(conf));
properties.load(CanalLauncher.class.getClassLoader().getResourceAsStream(conf));
} else {
properties.load(new FileInputStream(conf));
}