SpringBoot打包成jar后,如何确定下载文件的正确路径?

2026-05-24 10:350阅读0评论SEO问题
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计1278个文字,预计阅读时间需要6分钟。

SpringBoot打包成jar后,如何确定下载文件的正确路径?

错误信息:无法找到文件,下载路径中包含jar包,wlaqWeb-0.0.1-SNAPSHOT.jar!+java.io.FileNotFoundException: file:/C:/Users/PENGXIN/Desktop/网络安全/jars/wlaqWeb-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes/static/securityParameter/tem

错误信息

能看到下载的路径中包含了jar包,wlaqWeb-0.0.1-SNAPSHOT.jar!

java.io.FileNotFoundException: file:\C:\Users\PENGXIN\Desktop\网络安全\jars\wlaqWeb-0.0.1-SNAPSHOT.jar!\BOOT-INF\classes!\static\securityParameter\template\网络安全台账(模板).xlsx (文件名、目录名或卷标语法不正确。

阅读全文

本文共计1278个文字,预计阅读时间需要6分钟。

SpringBoot打包成jar后,如何确定下载文件的正确路径?

错误信息:无法找到文件,下载路径中包含jar包,wlaqWeb-0.0.1-SNAPSHOT.jar!+java.io.FileNotFoundException: file:/C:/Users/PENGXIN/Desktop/网络安全/jars/wlaqWeb-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes/static/securityParameter/tem

错误信息

能看到下载的路径中包含了jar包,wlaqWeb-0.0.1-SNAPSHOT.jar!

java.io.FileNotFoundException: file:\C:\Users\PENGXIN\Desktop\网络安全\jars\wlaqWeb-0.0.1-SNAPSHOT.jar!\BOOT-INF\classes!\static\securityParameter\template\网络安全台账(模板).xlsx (文件名、目录名或卷标语法不正确。

阅读全文