-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
从classpath中加载数据库文件 #8
Comments
DbSearcher内部使用的是RandomeFileAccess,classpath中的输入流是不支持的。 |
改变了方式,读取classpath的文件流,重新写入一个文件放到磁盘,读取这个文件的绝对路径。 |
哈哈,这种方式也是可行的,棒棒的! |
看了一下DbSearcher中RandomeFileAccess的调用,可以抽取一个接口,支持 seed, readFull,close方法就可以了 |
wendal
added a commit
to wendal/ip2region
that referenced
this issue
Jul 23, 2017
add: java客户端添加基于byte[]的数据库读取方式,摆脱本地文件的困扰
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
java 怎么从classpath加载文件,
这个加载不到,请问怎么解决
The text was updated successfully, but these errors were encountered: