报错:Caused by: java.io.FileNotFoundException: class path resource [core/config/EAPConfig.xml] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/opt/reinsurance-boot-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/core/config/EAPConfig.xml
解决 办法:
core/config/EAPConfig.xml 为clases 路径下 即 resource 目录
InputStream stream = getClass().getClassLoader().getResourceAsStream(**"core/config/EAPConfig.xml"**);
File var1 = **new **File(**"files/EAPConfig.xml"**);
FileUtils._copyInputStreamToFile_(stream, var1);