使用java -jar xxx.jar执行java程序时,
When you use this option(-jar), the JAR file is the source of all user classes, and other user class path settings are ignored.所以在jar包中无法访问外部的资源文件。
要解决这个文件,可以实现一个代理和自己的ClassLoader,由代理负责加载xxx.jar所需要的资源
要解决这个文件,可以实现一个代理和自己的ClassLoader,由代理负责加载xxx.jar所需要的资源