![Spring Boot 打包JAR 後獲取不了classpath下文件| java.io.filenotfoundexception: class path resource - Albert.kw.Lee - Medium Spring Boot 打包JAR 後獲取不了classpath下文件| java.io.filenotfoundexception: class path resource - Albert.kw.Lee - Medium](https://miro.medium.com/max/1400/1*tKFcHCZ3C-ZmK5uHsrojhw.png)
Spring Boot 打包JAR 後獲取不了classpath下文件| java.io.filenotfoundexception: class path resource - Albert.kw.Lee - Medium
![Spring Boot 打包JAR 後獲取不了classpath下文件| java.io.filenotfoundexception: class path resource - Albert.kw.Lee - Medium Spring Boot 打包JAR 後獲取不了classpath下文件| java.io.filenotfoundexception: class path resource - Albert.kw.Lee - Medium](https://miro.medium.com/max/1400/0*irhYbxwrmD24tzsk.jpeg)
Spring Boot 打包JAR 後獲取不了classpath下文件| java.io.filenotfoundexception: class path resource - Albert.kw.Lee - Medium
DEBUG o.s.w.s.v.v.VelocityConfigurer - Cannot resolve resource loader path [classpath:/templates/] to [java.io.File]: using SpringResourceLoader · Issue #9415 · spring-projects/spring-boot · GitHub
FileNotFoundException: Jar URL cannot be resolved to absolute file path because it does not reside in the file system: war:file: · Issue #8986 · spring-projects/spring-boot · GitHub
![Resource from filesystem not found when application is spring-boot packaged · Issue #20111 · spring-projects/spring-boot · GitHub Resource from filesystem not found when application is spring-boot packaged · Issue #20111 · spring-projects/spring-boot · GitHub](https://user-images.githubusercontent.com/24416449/83531851-c8208400-a4ed-11ea-83fc-c5b9ca3e38c2.png)
Resource from filesystem not found when application is spring-boot packaged · Issue #20111 · spring-projects/spring-boot · GitHub
spring-boot-jar-resources/JarUtils.java at master · ulisesbocchio/spring-boot-jar-resources · GitHub
![使用spring的ResourceUtils.getFile读取jar包内文件失败_"resourceutils.getfile (\"classpath:\"protocol为jar"_ljm_csdn的博客-CSDN博客 使用spring的ResourceUtils.getFile读取jar包内文件失败_"resourceutils.getfile (\"classpath:\"protocol为jar"_ljm_csdn的博客-CSDN博客](https://upload-images.jianshu.io/upload_images/14533020-49bb786aec6e71a4.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)