Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

12-28 23:05:28[Thread-5|ERROR] Config.load(68) - config/config.ini 配置文件不存在 #1

Open
lmxing1987 opened this issue Dec 28, 2013 · 7 comments

Comments

@lmxing1987
Copy link

12-28 23:05:28[Thread-5|ERROR] Config.load(68) - config/config.ini 配置文件不存在 怎么回事呢?

@matuobasyouca
Copy link
Owner

实在不好意思,现在才回复你,这个应该是路径地址导致的,你可以看一下日志信息中打印出来的路径地址。

2013/12/28 lmxing1987 [email protected]

12-28 23:05:28[Thread-5|ERROR] Config.load(68) - config/config.ini 配置文件不存在
怎么回事呢?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1
.

致敬

陈晨
新浪微博 http://weibo.com/matuobasyouca /
BlogJava博客http://www.blogjava.net/matuobasyouca/


专注大型分布式与海量数据处理,过程方法及自动化

@lmxing1987
Copy link
Author

谢谢,已经找到问题了。jar包中 获取config文件路径在linux下有点错

@matuobasyouca
Copy link
Owner

好的,有什么问题,我的新浪微博id 一酌散千忧 可以给我私信,比较快

2014/1/14 lmxing1987 [email protected]

谢谢,已经找到问题了。jar包中 获取config文件路径在linux下有点错


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-32272121
.

致敬

陈晨
新浪微博 http://weibo.com/matuobasyouca /
BlogJava博客http://www.blogjava.net/matuobasyouca/


专注大型分布式与海量数据处理,过程方法及自动化

@yeetrack
Copy link

确实,在linux和mac上config获取的路径有问题,ClassLoader.getSystemResource("")得到的路径是
file:/Users/apple/work/workspace/spider/target/classes/config/config.ini,在用replaceAll,得到就不是绝对路径了,这块出了问题,建议作者把jar包的源码也开源出来,方便更改。

@matuobasyouca
Copy link
Owner

当时确实都是在windows下面的环境测试和运行的。mac和linux的同学可以在https://github.com/matuobasyouca/e-shark-k
这里下载到带src的源码包,自行修改

@ghost
Copy link

ghost commented Dec 10, 2015

e-shark-k 这个是你们自己开发的吗?

@matuobasyouca
Copy link
Owner

@CoDepython e-shark-k是我们开发的,只是一些工具包,基础类,有什么问题么

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants